diff options
Diffstat (limited to 'subcmds/start.py')
-rw-r--r-- | subcmds/start.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/subcmds/start.py b/subcmds/start.py index 0c60d78c..5d4c9c01 100644 --- a/subcmds/start.py +++ b/subcmds/start.py | |||
@@ -41,15 +41,16 @@ revision specified in the manifest. | |||
41 | dest='all', action='store_true', | 41 | dest='all', action='store_true', |
42 | help='begin branch in all projects') | 42 | help='begin branch in all projects') |
43 | 43 | ||
44 | def Execute(self, opt, args): | 44 | def ValidateOptions(self, opt, args): |
45 | if not args: | 45 | if not args: |
46 | self.Usage() | 46 | self.Usage() |
47 | 47 | ||
48 | nb = args[0] | 48 | nb = args[0] |
49 | if not git.check_ref_format('heads/%s' % nb): | 49 | if not git.check_ref_format('heads/%s' % nb): |
50 | print("error: '%s' is not a valid name" % nb, file=sys.stderr) | 50 | self.OptionParser.error("'%s' is not a valid name" % nb) |
51 | sys.exit(1) | ||
52 | 51 | ||
52 | def Execute(self, opt, args): | ||
53 | nb = args[0] | ||
53 | err = [] | 54 | err = [] |
54 | projects = [] | 55 | projects = [] |
55 | if not opt.all: | 56 | if not opt.all: |