summaryrefslogtreecommitdiffstats
path: root/init-repository.py
diff options
context:
space:
mode:
authorAndras Becsi <andras.becsi@digia.com>2014-05-22 20:25:41 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-06-04 14:25:10 +0200
commit40a5ab6f81f86d0e7d0a5a05b54ad094b3c55f1a (patch)
tree255fcc250d096922ce3c44dd9a39762240303e5e /init-repository.py
parent5e5a99fa374d4b83e548ada8c76fa191a27e4b51 (diff)
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 <jrogers@blackberry.com> Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
Diffstat (limited to 'init-repository.py')
-rwxr-xr-xinit-repository.py2
1 files changed, 1 insertions, 1 deletions
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: