/usr/lib64/python2.6/Demo/pdist
Edit: /usr/lib64/python2.6/Demo/pdist/cmdfw.pyc (5276B)
Ñò
« gc @ s> d Z d d d „ ƒ YZ d „ Z e d j o e ƒ n d S( sH Framework for command line interfaces like CVS. See class CmdFrameWork.t CommandFrameWorkc B s\ e Z d Z d Z d Z d Z d „ Z d d „ Z d „ Z d „ Z
d d „ Z d „ Z RS(
só Framework class for command line interfaces like CVS.
The general command line structure is
command [flags] subcommand [subflags] [argument] ...
There's a class variable GlobalFlags which specifies the
global flags options. Subcommands are defined by defining
methods named do_
. Flags for the subcommand are
defined by defining class or instance variables named
flags_. If there's no command, method default()
is called. The __doc__ strings for the do_ methods are used
for the usage message, printed after the general usage message
which is the class variable UsageMessage. The class variable
PostUsageMessage is printed after all the do_ methods' __doc__
strings. The method's return value can be a suggested exit
status. [XXX Need to rewrite this to clarify it.]
Common usage is to derive a class, instantiate it, and then call its
run() method; by default this takes its arguments from sys.argv[1:].
s; usage: (name)s [flags] subcommand [subflags] [argument] ...t c C s d S( s&