Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(14)  |  Call(14)  |  Derive(0)  |  Import(0)
add_option(Option)
add_option(opt_str, ..., kwarg=val, ...)

src/e/x/execnet-1.2.0/doc/example/sysinfo.py   execnet(Download)
 
parser = py.std.optparse.OptionParser(usage=__doc__)
parser.add_option("-f", "--sshconfig", action="store", dest="ssh_config", default=None,
                  help="use given ssh config file, and add info all contained hosts for getting info")
parser.add_option("-i", "--ignore", action="store", dest="ignores", default=None,

src/p/y/pycmd-1.0/pycmd/pycleanup.py   pycmd(Download)
def main():
    parser = py.std.optparse.OptionParser(usage=__doc__)
    parser.add_option("-e", metavar="ENDING",
        dest="endings", default=[".pyc", "$py.class"], action="append",
        help=("(multi) recursively remove files with the given ending."
             " '.pyc' and '$py.class' are in the default list."))
    parser.add_option("-d", action="store_true", dest="removedir",
                      help="remove empty directories.")
    parser.add_option("-p", action="store_true", dest="pycache",
    parser.add_option("-p", action="store_true", dest="pycache",
                      help="remove __pycache__ directories.")
    parser.add_option("-s", action="store_true", dest="setup",
                      help="remove 'build' and 'dist' directories next to setup.py files")
    parser.add_option("-a", action="store_true", dest="all",

src/p/y/pycmd-1.0/pycmd/pylookup.py   pycmd(Download)
 
parser = py.std.optparse.OptionParser(usage=__doc__)
parser.add_option("-i", "--ignore-case", action="store_true", dest="ignorecase",
                  help="ignore case distinctions")
parser.add_option("-C", "--context", action="store", type="int", dest="context",

src/p/y/pycmd-1.0/pycmd/pysvnwcrevert.py   pycmd(Download)
 
parser = py.std.optparse.OptionParser(usage=__doc__)
parser.add_option("-p", "--precious",
                  action="append", dest="precious", default=[],
                  help="preserve files with this name")

src/p/y/pycmd-1.0/pycmd/pyconvert_unittest.py   pycmd(Download)
            optparser.output = kw['output']
 
    optparser.add_option("-s", "--stdout", action="callback",
                         callback=select_output,
                         callback_kwargs={'output':'stdout'},
                         help="send your output to stdout")
 
    optparser.add_option("-i", "--inplace", action="callback",
                         help="overwrite files in place")
 
    optparser.add_option("-c", "--copy", action="callback",
                         callback=select_output,
                         callback_kwargs={'output':'copy'},