Did I find the right examples for you? yes no

All Samples(32)  |  Call(32)  |  Derive(0)  |  Import(0)

src/r/e/rez-HEAD/bin/rez-make-project_.py   rez(Download)
 
p = OptionParser(usage=usage)
p.add_option("--type", dest="type", type="string", default="empty", \
    help="Project type - one of [%s]. (default: empty)" % proj_types_str)
p.add_option("--tools", dest="tools", type="string", default="", \

src/m/u/munki-HEAD/code/tools/transcript2pkg.py   munki(Download)
def main():
	# command-line options
    p = optparse.OptionParser()
    p.add_option('--makedmg', '-d', action='store_true',
                    help='Makes a disk image containing the package.')
    p.add_option('--name', '-n',
                       help='Specify a name for the package.')
    p.add_option('--version', '-v',
                       help='Specify a version number for the package.')
    p.add_option('--id',
    p.add_option('--id',
                       help='Specify a package id for the package.')
    p.add_option('--displayname',
                        help='Specify a display name for the package.')
    p.add_option('--description',

src/m/u/munki-HEAD/code/tools/app2pkg.py   munki(Download)
def main():
	# command-line options
    p = optparse.OptionParser()
    p.add_option('--makedmg', '-d', action='store_true',
                    help='Makes a disk image containing the package.')
    p.add_option('--name', '-n',
                    help='Specify a name for the package.')
    p.add_option('--version', '-v',
                    help='Specify a version number for the package.')
    p.add_option('--displayname',
    p.add_option('--displayname',
                    help='Specify a display name for the package.')
    p.add_option('--description',
                    help='Specify a description for the package.')
    p.add_option('--id',

src/m/u/munki-HEAD/code/tools/makeChoices.py   munki(Download)
    %prog --pkg /path/to/some.pkg --doinstall CHOICEID1 --dontinstall CHOICEID2""")
 
    p.add_option("--pkg", help="Path to package.")
    p.add_option('--target', default='/', 
                    help="Installer target. Defaults to /")
    p.add_option("--doinstall", action="append", 
                    help="Optional choices to install.")
    p.add_option("--dontinstall", action="append", 
                    help="Optional choices not to install.")
    p.add_option('--onlyinstall', 

src/m/u/munki-HEAD/code/tools/filelist2pkg.py   munki(Download)
def main():
	# command-line options
    p = optparse.OptionParser()
    p.add_option('--nomakedmg', action='store_true',
                    help='Don\'t make a disk image containing the package.')
    p.add_option('--name', '-n',
                       help='Specify a name for the package.')
    p.add_option('--version', '-v',
                       help='Specify a version number for the package.')
    p.add_option('--id',
    p.add_option('--id',
                       help='Specify a package id for the package.')
    p.add_option('--displayname',
                        help='Specify a display name for the package.')
    p.add_option('--description',