Did I find the right examples for you? yes no

All Samples(7344)  |  Call(0)  |  Derive(0)  |  Import(7344)
A powerful, extensible, and easy-to-use option parser.

By Greg Ward <gward@python.net>

Originally distributed as Optik.

For support, use the optik-users@lists.sourceforge.net mailing list
(http://lists.sourceforge.net/lists/listinfo/optik-users).

Simple usage example:

   from optparse import OptionParser

   parser = OptionParser()
   parser.add_option("-f", "--file", dest="filename",
                     help="write report to FILE", metavar="FILE")
   parser.add_option("-q", "--quiet",
                     action="store_false", dest="verbose", default=True,
                     help="don't print status messages to stdout")

   (options, args) = parser.parse_args()

src/n/e/neutron-drive-HEAD/google_appengine/lib/PyAMF/doc/tutorials/examples/actionscript/addressbook/python/server.py   neutron-drive(Download)
 
if __name__ == '__main__':
    import optparse
    import logging
    import os, sys

src/c/g/cgat-HEAD/scripts/contigs2random_sample.py   cgat(Download)
import sys
import re
import optparse
import CGAT.Experiment as E
import CGAT.FastaIterator as FastaIterator

src/t/h/theyworkforyou-HEAD/googleappengine/electionsurvey/google_appengine/lib/yaml/examples/yaml-highlight/yaml_hl.py   theyworkforyou(Download)
#!/usr/bin/python
 
import yaml, codecs, sys, os.path, optparse
 
class Style:

src/t/h/theyworkforyou-HEAD/googleappengine/electionsurvey/google_appengine/lib/webob/docs/wiki-example-code/example.py   theyworkforyou(Download)
 
if __name__ == '__main__':
    import optparse
    parser = optparse.OptionParser(
        usage='%prog --port=PORT'

src/t/h/theyworkforyou-HEAD/googleappengine/electionsurvey/google_appengine/lib/webob/docs/comment-example-code/example.py   theyworkforyou(Download)
 
if __name__ == '__main__':
    import optparse
    parser = optparse.OptionParser(
        usage='%prog --port=PORT BASE_DIRECTORY'

src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/PyYAML-3.09/examples/yaml-highlight/yaml_hl.py   hortonworks-sandbox(Download)
#!/usr/bin/python
 
import yaml, codecs, sys, os.path, optparse
 
class Style:

src/o/h/oh-mainline-HEAD/vendor/packages/PyYaml/examples/yaml-highlight/yaml_hl.py   oh-mainline(Download)
#!/usr/bin/python
 
import yaml, codecs, sys, os.path, optparse
 
class Style:

src/l/a/latimes-appengine-template-0.022/appengine_template/google_appengine/lib/yaml/examples/yaml-highlight/yaml_hl.py   latimes-appengine-template(Download)
#!/usr/bin/python
 
import yaml, codecs, sys, os.path, optparse
 
class Style:

src/l/a/latimes-appengine-template-0.022/appengine_template/google_appengine/lib/webob/docs/wiki-example-code/example.py   latimes-appengine-template(Download)
 
if __name__ == '__main__':
    import optparse
    parser = optparse.OptionParser(
        usage='%prog --port=PORT'

src/l/a/latimes-appengine-template-0.022/appengine_template/google_appengine/lib/webob/docs/comment-example-code/example.py   latimes-appengine-template(Download)
 
if __name__ == '__main__':
    import optparse
    parser = optparse.OptionParser(
        usage='%prog --port=PORT BASE_DIRECTORY'

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next