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

All Samples(40)  |  Call(19)  |  Derive(0)  |  Import(21)
Wrapper around the standard 'getopt()' module that provides some
handy extra functionality:
  * short and long options are tied together
  * options have help strings, and help text can be assembled
    from them
  * options set attributes of a passed-in object
  * boolean options can have "negative aliases" -- eg. if
    --quiet is the "negative alias" of --verbose, then "--quiet"
    on the command line sets 'verbose' to false

src/x/r/xrayutilities-1.0.6/setup.py   xrayutilities(Download)
from distutils.core import setup, Extension
from distutils.command.build_ext import build_ext
from distutils.fancy_getopt import FancyGetopt
import os.path
import numpy
cliopts.append(("without-openmp",None,"build without OpenMP support"))
 
options = FancyGetopt(option_table = cliopts)
 
#first read all the arguments passed to the script

src/c/h/Chocolatey-Packages-HEAD/mwrock-TfsDesktop/tools/sublime/Backup/20120727105608/AAAPackageDev/setup.py   Chocolatey-Packages(Download)
def show_formats ():
    """Print all possible values for the 'formats' option (used by
    the "--help-formats" command-line option).
    """
    from distutils.fancy_getopt import FancyGetopt
                        ARCHIVE_FORMATS[format][2]))
    formats.sort()
    pretty_printer = FancyGetopt(formats)
    pretty_printer.print_help(
        "List of available source distribution formats:")

src/c/h/Chocolatey-Packages-HEAD/mwrock-TfsDesktop/tools/sublime/Backup/20120706164234/AAAPackageDev/setup.py   Chocolatey-Packages(Download)
def show_formats ():
    """Print all possible values for the 'formats' option (used by
    the "--help-formats" command-line option).
    """
    from distutils.fancy_getopt import FancyGetopt
                        ARCHIVE_FORMATS[format][2]))
    formats.sort()
    pretty_printer = FancyGetopt(formats)
    pretty_printer.print_help(
        "List of available source distribution formats:")

src/c/h/Chocolatey-Packages-HEAD/mwrock-TfsDesktop/tools/sublime/Backup/20120520162633/AAAPackageDev/setup.py   Chocolatey-Packages(Download)
def show_formats ():
    """Print all possible values for the 'formats' option (used by
    the "--help-formats" command-line option).
    """
    from distutils.fancy_getopt import FancyGetopt
                        ARCHIVE_FORMATS[format][2]))
    formats.sort()
    pretty_printer = FancyGetopt(formats)
    pretty_printer.print_help(
        "List of available source distribution formats:")

src/c/h/Chocolatey-Packages-HEAD/mwrock-TfsDesktop/tools/sublime/Backup/20120426035411/PowerShell/setup.py   Chocolatey-Packages(Download)
def show_formats ():
    """Print all possible values for the 'formats' option (used by
    the "--help-formats" command-line option).
    """
    from distutils.fancy_getopt import FancyGetopt
                        ARCHIVE_FORMATS[format][2]))
    formats.sort()
    pretty_printer = FancyGetopt(formats)
    pretty_printer.print_help(
        "List of available source distribution formats:")

src/c/h/Chocolatey-Packages-HEAD/mwrock-TfsDesktop/tools/sublime/Backup/20120331054222/AAAPackageDev/setup.py   Chocolatey-Packages(Download)
def show_formats ():
    """Print all possible values for the 'formats' option (used by
    the "--help-formats" command-line option).
    """
    from distutils.fancy_getopt import FancyGetopt
                        ARCHIVE_FORMATS[format][2]))
    formats.sort()
    pretty_printer = FancyGetopt(formats)
    pretty_printer.print_help(
        "List of available source distribution formats:")

src/c/h/Chocolatey-Packages-HEAD/mwrock-TfsDesktop/tools/sublime/Packages/PowershellUtils/setup.py   Chocolatey-Packages(Download)
def show_formats ():
    """Print all possible values for the 'formats' option (used by
    the "--help-formats" command-line option).
    """
    from distutils.fancy_getopt import FancyGetopt
                        ARCHIVE_FORMATS[format][2]))
    formats.sort()
    pretty_printer = FancyGetopt(formats)
    pretty_printer.print_help(
        "List of available source distribution formats:")

src/c/h/Chocolatey-Packages-HEAD/mwrock-TfsDesktop/tools/sublime/Packages/PowerShell/setup.py   Chocolatey-Packages(Download)
def show_formats ():
    """Print all possible values for the 'formats' option (used by
    the "--help-formats" command-line option).
    """
    from distutils.fancy_getopt import FancyGetopt
                        ARCHIVE_FORMATS[format][2]))
    formats.sort()
    pretty_printer = FancyGetopt(formats)
    pretty_printer.print_help(
        "List of available source distribution formats:")

src/c/h/Chocolatey-Packages-HEAD/mwrock-TfsDesktop/tools/sublime/Packages/AAAPackageDev/setup.py   Chocolatey-Packages(Download)
def show_formats ():
    """Print all possible values for the 'formats' option (used by
    the "--help-formats" command-line option).
    """
    from distutils.fancy_getopt import FancyGetopt
                        ARCHIVE_FORMATS[format][2]))
    formats.sort()
    pretty_printer = FancyGetopt(formats)
    pretty_printer.print_help(
        "List of available source distribution formats:")

src/4/s/4Suite-XML-1.0.2/Ft/Lib/DistExt/Dist.py   4Suite-XML(Download)
from distutils.core import Distribution, gen_usage, DEBUG
from distutils.errors import *
from distutils.fancy_getopt import FancyGetopt, wrap_text
try:
    from distutils import log
 
            self.commands = []
            parser = FancyGetopt(toplevel_options + self.display_options)
            parser.set_negative_aliases(self.negative_opt)
            parser.set_aliases({'licence': 'license'})

  1 | 2 | 3  Next