[jhbuild] Report error if cmd list -a and -t used together (GNOME bug 621152)
- From: Craig Keogh <cskeogh src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [jhbuild] Report error if cmd list -a and -t used together (GNOME bug 621152)
- Date: Thu, 24 Jun 2010 10:17:06 +0000 (UTC)
commit 08fb7bce8cebd3f27ae764acbb92c65973ec2e9f
Author: Craig Keogh <cskeogh adam com au>
Date: Sat Jun 19 19:44:18 2010 +0930
Report error if cmd list -a and -t used together (GNOME bug 621152)
jhbuild/commands/base.py | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/jhbuild/commands/base.py b/jhbuild/commands/base.py
index f98069f..86f7b90 100644
--- a/jhbuild/commands/base.py
+++ b/jhbuild/commands/base.py
@@ -483,6 +483,11 @@ class cmd_list(Command):
def run(self, config, options, args, help=None):
config.set_from_cmdline_options(options)
module_set = jhbuild.moduleset.load(config)
+ if options.startat and options.list_all_modules:
+ raise UsageError(_('Conflicting options specified '
+ '(\'%s\' and \'%s\')') % \
+ ('--start-at', '--all-modules'))
+
if options.list_all_modules:
module_list = module_set.modules.values()
else:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]