summaryrefslogtreecommitdiffstats
path: root/repo
diff options
context:
space:
mode:
Diffstat (limited to 'repo')
-rwxr-xr-xrepo11
1 files changed, 7 insertions, 4 deletions
diff --git a/repo b/repo
index 63cee031..1bc78b89 100755
--- a/repo
+++ b/repo
@@ -270,9 +270,9 @@ gpg_dir = os.path.join(home_dot_repo, 'gnupg')
270def GetParser(gitc_init=False): 270def GetParser(gitc_init=False):
271 """Setup the CLI parser.""" 271 """Setup the CLI parser."""
272 if gitc_init: 272 if gitc_init:
273 usage = 'repo gitc-init -u url -c client [options]' 273 usage = 'repo gitc-init -c client [options] [-u] url'
274 else: 274 else:
275 usage = 'repo init -u url [options]' 275 usage = 'repo init [options] [-u] url'
276 276
277 parser = optparse.OptionParser(usage=usage) 277 parser = optparse.OptionParser(usage=usage)
278 278
@@ -522,8 +522,11 @@ def _Init(args, gitc_init=False):
522 parser = GetParser(gitc_init=gitc_init) 522 parser = GetParser(gitc_init=gitc_init)
523 opt, args = parser.parse_args(args) 523 opt, args = parser.parse_args(args)
524 if args: 524 if args:
525 parser.print_usage() 525 if not opt.manifest_url:
526 sys.exit(1) 526 opt.manifest_url = args.pop(0)
527 if args:
528 parser.print_usage()
529 sys.exit(1)
527 opt.quiet = opt.output_mode is False 530 opt.quiet = opt.output_mode is False
528 opt.verbose = opt.output_mode is True 531 opt.verbose = opt.output_mode is True
529 532