diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-08-05 14:09:57 +0000 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-08-07 14:42:34 +0200 |
commit | 8a74cf604ff668cb05ec3c98d3bf7b3836e5a66c (patch) | |
tree | 26bffbaed97fc37524fdd657d82d82e5ef32d580 | |
parent | ffcec1a46b5aa3ed57c519f0280fa698b2c2ebec (diff) | |
download | jenkins.debian.net-8a74cf604ff668cb05ec3c98d3bf7b3836e5a66c.tar.xz |
reproducible: remote_scheduler: resort the CLI flags and improve the help
-rwxr-xr-x | bin/reproducible_remote_scheduler.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/bin/reproducible_remote_scheduler.py b/bin/reproducible_remote_scheduler.py index fb7a01b6..2e5f7a9e 100755 --- a/bin/reproducible_remote_scheduler.py +++ b/bin/reproducible_remote_scheduler.py @@ -19,22 +19,17 @@ parser = argparse.ArgumentParser( ' (namely two or more -r/-i/-t/-b) means "all packages with that' ' issue AND that status AND that date". Blacklisted package ' "can't be selected by a filter, but needs to be explitely listed" - 'in the package list.') -group = parser.add_mutually_exclusive_group() + ' in the package list.') parser.add_argument('--dry-run', action='store_true') -group.add_argument('-k', '--keep-artifacts', action='store_true', +parser.add_argument('-k', '--keep-artifacts', action='store_true', help='Save artifacts (for further offline study)') -group.add_argument('-n', '--notify', action='store_true', +parser.add_argument('-n', '--notify', action='store_true', help='Notify the channel when the build finishes') parser.add_argument('--noisy', action='store_true', help='Also notify when ' + - 'the build starts, linking to the build url. This disables -n.') + 'the build starts, linking to the build url.') parser.add_argument('-m', '--message', default='', nargs='+', help='A text to be sent to the IRC channel when notifying' + ' about the scheduling') -parser.add_argument('-s', '--suite', required=True, - help='Specify the suite to schedule in') -parser.add_argument('-a', '--architecture', required=False, default='unstable', - help='Specify the architecture to schedule for') parser.add_argument('-r', '--status', required=False, help='Schedule all package with this status') parser.add_argument('-i', '--issue', required=False, @@ -43,6 +38,11 @@ parser.add_argument('-t', '--after', required=False, help='Schedule all packages built after this date') parser.add_argument('-b', '--before', required=False, help='Schedule all packages built before this date') +parser.add_argument('-a', '--architecture', required=False, default='amd64', + help='Specify the architecture to schedule for ' + + '(defaults to amd64)') +parser.add_argument('-s', '--suite', required=True, + help='Specify the suite to schedule in') parser.add_argument('packages', metavar='package', nargs='*', help='list of packages to reschedule') scheduling_args = parser.parse_known_args()[0] |