Allow external use of Command.usage() and use CmdOptionParser.set_usage()
authorW. Trevor King <wking@drexel.edu>
Mon, 28 Dec 2009 15:56:04 +0000 (10:56 -0500)
committerW. Trevor King <wking@drexel.edu>
Mon, 28 Dec 2009 15:56:04 +0000 (10:56 -0500)
commite2b648f2148d7b6550fb3a4bcfde4eff714a7ec6
tree0d4e90ed1ce25f2d22a9f08a19ead6af614ef785
parent4fbf5d1d222610b0775f95472fe1a60aaedea29f
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
libbe/command/base.py
libbe/command/target.py
libbe/ui/command_line.py