From 40a5ab6f81f86d0e7d0a5a05b54ad094b3c55f1a Mon Sep 17 00:00:00 2001 From: Andras Becsi Date: Thu, 22 May 2014 20:25:41 +0200 Subject: Fix init-repository.py's --no-gerrit option The argument should not be added to the mutually exclusive group but to the parser itself to make it usable with upstream checkouts as well. Change-Id: If2361c7beb0463a471cea9ce01e18a51abeed4ee Reviewed-by: Jeff Rogers Reviewed-by: Jocelyn Turcotte --- init-repository.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'init-repository.py') diff --git a/init-repository.py b/init-repository.py index 64f792b81..b2a2d208f 100755 --- a/init-repository.py +++ b/init-repository.py @@ -75,10 +75,10 @@ ninja_src = os.path.join(qtwebengine_root, 'src/3rdparty_upstream/ninja') use_external_chromium = False parser = argparse.ArgumentParser(description='Initialize QtWebEngine repository.') +parser.add_argument('--no-gerrit', action='store_true', help='skip adding the upstream Gerrit remote and commit hook') group = parser.add_mutually_exclusive_group() group.add_argument('-u', '--upstream', action='store_true', help='initialize using upstream Chromium submodule') group.add_argument('-s', '--snapshot', action='store_true', help='initialize using flat Chromium snapshot submodule (default)') -group.add_argument('--no-gerrit', action='store_true', help='skip adding the upstream Gerrit remote and commit hook') args = parser.parse_args() if chromium_src: -- cgit v1.2.3