summaryrefslogtreecommitdiffstats
path: root/subcmds/init.py
diff options
context:
space:
mode:
Diffstat (limited to 'subcmds/init.py')
-rw-r--r--subcmds/init.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/subcmds/init.py b/subcmds/init.py
index eb82e2e4..41578076 100644
--- a/subcmds/init.py
+++ b/subcmds/init.py
@@ -488,6 +488,9 @@ to update the working directory files.
488 if opt.archive and opt.mirror: 488 if opt.archive and opt.mirror:
489 self.OptionParser.error('--mirror and --archive cannot be used together.') 489 self.OptionParser.error('--mirror and --archive cannot be used together.')
490 490
491 if args:
492 self.OptionParser.error('init takes no arguments')
493
491 def Execute(self, opt, args): 494 def Execute(self, opt, args):
492 git_require(MIN_GIT_VERSION_HARD, fail=True) 495 git_require(MIN_GIT_VERSION_HARD, fail=True)
493 if not git_require(MIN_GIT_VERSION_SOFT): 496 if not git_require(MIN_GIT_VERSION_SOFT):