diff options
Diffstat (limited to 'subcmds/list.py')
-rw-r--r-- | subcmds/list.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/subcmds/list.py b/subcmds/list.py index 961b1956..00172f0e 100644 --- a/subcmds/list.py +++ b/subcmds/list.py | |||
@@ -49,6 +49,10 @@ This is similar to running: repo forall -c 'echo "$REPO_PATH : $REPO_PROJECT"'. | |||
49 | dest='path_only', action='store_true', | 49 | dest='path_only', action='store_true', |
50 | help="Display only the path of the repository") | 50 | help="Display only the path of the repository") |
51 | 51 | ||
52 | def ValidateOptions(self, opt, args): | ||
53 | if opt.fullpath and opt.name_only: | ||
54 | self.OptionParser.error('cannot combine -f and -n') | ||
55 | |||
52 | def Execute(self, opt, args): | 56 | def Execute(self, opt, args): |
53 | """List all projects and the associated directories. | 57 | """List all projects and the associated directories. |
54 | 58 | ||
@@ -60,11 +64,6 @@ This is similar to running: repo forall -c 'echo "$REPO_PATH : $REPO_PROJECT"'. | |||
60 | opt: The options. | 64 | opt: The options. |
61 | args: Positional args. Can be a list of projects to list, or empty. | 65 | args: Positional args. Can be a list of projects to list, or empty. |
62 | """ | 66 | """ |
63 | |||
64 | if opt.fullpath and opt.name_only: | ||
65 | print('error: cannot combine -f and -n', file=sys.stderr) | ||
66 | sys.exit(1) | ||
67 | |||
68 | if not opt.regex: | 67 | if not opt.regex: |
69 | projects = self.GetProjects(args, groups=opt.groups) | 68 | projects = self.GetProjects(args, groups=opt.groups) |
70 | else: | 69 | else: |