Home | Trees | Indices | Help |
|
---|
|
1 import optparse 2 3 from base import CmdBase 4 57 """ 8 help 9 10 Show StarCluster usage 11 """ 12 names = ['help'] 132715 if args: 16 cmdname = args[0] 17 try: 18 sc = self.subcmds_map[cmdname] 19 lparser = optparse.OptionParser(sc.__doc__.strip()) 20 if hasattr(sc, 'addopts'): 21 sc.addopts(lparser) 22 lparser.print_help() 23 except KeyError: 24 raise SystemExit("Error: invalid command '%s'" % cmdname) 25 else: 26 self.gparser.parse_args(['--help'])
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Jan 3 23:11:48 2012 | http://epydoc.sourceforge.net |