Home | Trees | Indices | Help |
|
---|
|
1 #!/usr/bin/env python 2 3 import optparse 4 5 from base import CmdBase 6 79 """ 10 help 11 12 Show StarCluster usage 13 """ 14 names = ['help'] 152917 if args: 18 cmdname = args[0] 19 try: 20 sc = self.subcmds_map[cmdname] 21 lparser = optparse.OptionParser(sc.__doc__.strip()) 22 if hasattr(sc, 'addopts'): 23 sc.addopts(lparser) 24 lparser.print_help() 25 except KeyError: 26 raise SystemExit("Error: invalid command '%s'" % cmdname) 27 else: 28 self.gparser.parse_args(['--help'])
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Jun 27 11:48:23 2011 | http://epydoc.sourceforge.net |