]> arthur.barton.de Git - bup.git/commit
Add support for global command-line options (before any subcmd).
authorRob Browning <rlb@defaultvalue.org>
Thu, 25 Mar 2010 07:23:56 +0000 (00:23 -0700)
committerAvery Pennarun <apenwarr@gmail.com>
Thu, 25 Mar 2010 07:33:23 +0000 (03:33 -0400)
commit74012988bd06954abdbc183b566e38ea0ec35fa5
tree8f857d16fa009ad2739b14ad098503f1a2912ede
parent59a6745759540e95b28ac818975b56634711d7b2
Add support for global command-line options (before any subcmd).

Process global arguments via getopt before handling a subcmd, and add
initial support for a global --help (or -?) option.

Also support --help for subcmds by noticing and translating

  git ... subcmd --help ...

into

  git ... help subcmd ...

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
main.py