assist/__main__.py
def parse_options(mod):
    """Interpret the command line inputs and options. """
    desc = """
assist is a library for stochastic simulation of birth-death
processes, though much of its development has been motivated by the
simulation of gene regulatory networks.

this script provides several commands to develop simulations.

"""
    ver = "assist %s" % VERSION
    epi = """
more info:
  http://assist.readthedocs.org

version:
  assist %s

""" % VERSION
    raw = argparse.RawDescriptionHelpFormatter
    argp = argparse.ArgumentParser(formatter_class=raw,
                                   description=textwrap.dedent(desc),
                                   epilog=textwrap.dedent(epi))
    argp.add_argument('-v', '--version', action='version', version=ver)
    subp = argp.add_subparsers(title='subcommands',
                               dest='parser_name',
                               help='additional help',
                               metavar="<command>")
    names = sorted(mod.keys())
    for name in names:
        mod[name].add_parser(subp, raw)
    try:
        argcomplete.autocomplete(argp)
    except NameError:
        pass
    arg = argp.parse_args()
    if arg.parser_name is None:
        argp.print_usage()
        argp.exit(2)
    return arg
Interpret the command line inputs and options. 
Interpret the command line inputs and options.
Interpret the command line inputs and options .
def parse_options(mod):
    desc = """
assist is a library for stochastic simulation of birth-death
processes, though much of its development has been motivated by the
simulation of gene regulatory networks.
this script provides several commands to develop simulations.
"""
    ver = "assist %s" % VERSION
    epi = """
more info:
  http://assist.readthedocs.org
version:
  assist %s
""" % VERSION
    raw = argparse.RawDescriptionHelpFormatter
    argp = argparse.ArgumentParser(formatter_class=raw,
                                   description=textwrap.dedent(desc),
                                   epilog=textwrap.dedent(epi))
    argp.add_argument('-v', '--version', action='version', version=ver)
    subp = argp.add_subparsers(title='subcommands',
                               dest='parser_name',
                               help='additional help',
                               metavar="<command>")
    names = sorted(mod.keys())
    for name in names:
        mod[name].add_parser(subp, raw)
    try:
        argcomplete.autocomplete(argp)
    except NameError:
        pass
    arg = argp.parse_args()
    if arg.parser_name is None:
        argp.print_usage()
        argp.exit(2)
    return arg
def parse_options ( mod ) : desc = """
assist is a library for stochastic simulation of birth-death
processes, though much of its development has been motivated by the
simulation of gene regulatory networks.

this script provides several commands to develop simulations.

""" ver = "assist %s" % VERSION epi = """
more info:
  http://assist.readthedocs.org

version:
  assist %s

""" % VERSION raw = argparse . RawDescriptionHelpFormatter argp = argparse . ArgumentParser ( formatter_class = raw , description = textwrap . dedent ( desc ) , epilog = textwrap . dedent ( epi ) ) argp . add_argument ( '-v' , '--version' , action = 'version' , version = ver ) subp = argp . add_subparsers ( title = 'subcommands' , dest = 'parser_name' , help = 'additional help' , metavar = "<command>" ) names = sorted ( mod . keys ( ) ) for name in names : mod [ name ] . add_parser ( subp , raw ) try : argcomplete . autocomplete ( argp ) except NameError : pass arg = argp . parse_args ( ) if arg . parser_name is None : argp . print_usage ( ) argp . exit ( 2 ) return arg
Interpret the command line inputs and options.
Interpret the command line inputs and options .
"""Interpret the command line inputs and options. """
mod