diff options
author | W. Trevor King <wking@drexel.edu> | 2009-12-28 10:56:04 -0500 |
---|---|---|
committer | W. Trevor King <wking@drexel.edu> | 2009-12-28 10:56:04 -0500 |
commit | e2b648f2148d7b6550fb3a4bcfde4eff714a7ec6 (patch) | |
tree | 0d4e90ed1ce25f2d22a9f08a19ead6af614ef785 /libbe/command/target.py | |
parent | 4fbf5d1d222610b0775f95472fe1a60aaedea29f (diff) | |
download | bugseverywhere-e2b648f2148d7b6550fb3a4bcfde4eff714a7ec6.tar.gz |
Allow external use of Command.usage() and use CmdOptionParser.set_usage()
This fixes
$ python be diff -2
Usage: be [options]
be: error: no such option: -2
and we now get the correct output
$ python be diff -2
Usage: be diff [options] [REVISION]
be: error: no such option: -2
Diffstat (limited to 'libbe/command/target.py')
-rw-r--r-- | libbe/command/target.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libbe/command/target.py b/libbe/command/target.py index df836db..3195f95 100644 --- a/libbe/command/target.py +++ b/libbe/command/target.py @@ -107,7 +107,7 @@ class Target (libbe.command.Command): target = add_target(bugdir, bug, params['target']) return 0 - def _usage(self): + def usage(self): return 'usage: be %(name)s BUG-ID [TARGET]\nor: be %(name)s --resolve [TARGET]' \ % vars(self) |