From e91ac330b78025f523a60161e9fde43dafae4b7e Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Tue, 28 May 2019 20:38:32 +0200 Subject: Packages: clean, fetch and keep options are mutually exclusive ... as it makes no sense to keep and clean a package or any other combination. --- scripts/build-packages | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/build-packages b/scripts/build-packages index aa73228a..69cef3c0 100755 --- a/scripts/build-packages +++ b/scripts/build-packages @@ -285,13 +285,13 @@ pkg_build = [] if __name__ == '__main__': parser = argparse.ArgumentParser() exclusive = parser.add_mutually_exclusive_group(required=False) + exclusive.add_argument('-c', '--clean', action='store_true', help='Re-clone required Git repositories') exclusive.add_argument('-k', '--keep', action='store_true', help='Keep modified Git repositories') + exclusive.add_argument('-f', '--fetch', action='store_true', help='Fetch sources only, no build') parser.add_argument('-v', '--verbose', action='count', default=0, help='Increase logging verbosity for each occurance') - parser.add_argument('-c', '--clean', action='store_true', help='Re-clone required Git repositories') parser.add_argument('-l', '--list-packages', action='store_true', help='List all packages to build') parser.add_argument('-b', '--build', nargs='+', help='Whitespace separated list of packages to build') - parser.add_argument('-f', '--fetch', action='store_true', help='Fetch sources only, no build') parser.add_argument('-p', '--parallel', action='store_true', help='Build on all CPUs') parser.add_argument('--blacklist', nargs='+', help='Do not build/report packages when calling --list') -- cgit v1.2.3