Ticket #2231: bs.py

File bs.py, 229 bytes (added by David Reid, 12 years ago)

bad subcommands example

Line 
1from twisted.python import usage
2
3class SomeSubCommand(usage.Options):
4        pass
5
6class Options(usage.Options):
7        subCommands = [
8                ['foobar', 'foo', SomeSubCommand, "FIXME"],
9                ]
10
11if __name__ == '__main__':
12        Options().parseOptions()