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:(more...)

src/a/p/appscale-original-HEAD/AppServer/lib/webob/docs/wiki-example-code/example.py   appscale-original(Download)
 
if __name__ == '__main__':
    import optparse
    parser = optparse.OptionParser(
        usage='%prog --port=PORT'

src/a/p/appscale-original-HEAD/AppServer/lib/webob/docs/comment-example-code/example.py   appscale-original(Download)
 
if __name__ == '__main__':
    import optparse
    parser = optparse.OptionParser(
        usage='%prog --port=PORT BASE_DIRECTORY'

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

src/g/o/googleappengine-python-HEAD/lib/webob_0_9/docs/wiki-example-code/example.py   googleappengine-python(Download)
 
if __name__ == '__main__':
    import optparse
    parser = optparse.OptionParser(
        usage='%prog --port=PORT'

src/g/o/googleappengine-python-HEAD/lib/webob_0_9/docs/comment-example-code/example.py   googleappengine-python(Download)
 
if __name__ == '__main__':
    import optparse
    parser = optparse.OptionParser(
        usage='%prog --port=PORT BASE_DIRECTORY'

src/b/a/baepython_sdk-HEAD/examples/pyexample/0/static/admin/js/compress.py   baepython_sdk(Download)
#!/usr/bin/env python
import os
import optparse
import subprocess
import sys

src/b/a/baepython_sdk-HEAD/examples/djangotest/0/static/admin/js/compress.py   baepython_sdk(Download)
#!/usr/bin/env python
import os
import optparse
import subprocess
import sys

src/p/u/puq-2.2.2/examples/test1/test1_prog.py   puq(Download)
#!/usr/bin/env python
''' This is just a test program for the UQ framework'''
 
import optparse
import numpy as np

src/p/u/puq-2.2.2/examples/simple_sweep/rosen_prog.py   puq(Download)
#!/usr/bin/env python
 
import optparse
from puqutil import dump_hdf5
 

src/p/u/puq-2.2.2/examples/simple_sweep/poly_prog.py   puq(Download)
#!/usr/bin/env python
 
# 1d 2nd degree polymial function
 
import optparse

Previous  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10  Next