From 8a74cf604ff668cb05ec3c98d3bf7b3836e5a66c Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Wed, 5 Aug 2015 14:09:57 +0000 Subject: reproducible: remote_scheduler: resort the CLI flags and improve the help --- bin/reproducible_remote_scheduler.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'bin') 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] -- cgit v1.2.3-70-g09d2