Rearrange libbe.ui.command_line.CmdOptionParser._add_option() for Python 2.5
authorW. Trevor King <wking@drexel.edu>
Sun, 13 Dec 2009 11:33:50 +0000 (06:33 -0500)
committerW. Trevor King <wking@drexel.edu>
Sun, 13 Dec 2009 11:33:50 +0000 (06:33 -0500)
commitc2a50865f1ea73f43f2d347b2e7595a484f43e78
tree146c8d5c78da986fa1143348851b6fc8dc33d4ae
parent4d057dab603f42ec40b911dbee6792dcf107bd14
Rearrange libbe.ui.command_line.CmdOptionParser._add_option() for Python 2.5

Python 2.6 doesn't mind, but 2.5 doesn't like kwargs after a *
expansion:

  $ ./be list
  Traceback (most recent call last):
    File "./be", line 5, in <module>
      import libbe.ui.command_line
    File "/home/wking/src/fun/be/be.restructure/libbe/ui/command_line.py", line 63
      *opt_strings, action='callback', dest=dest,
                         ^
  SyntaxError: invalid syntax
libbe/ui/command_line.py