Did I find the right examples for you? yes no

All Samples(16)  |  Call(10)  |  Derive(0)  |  Import(6)

src/c/o/cogent-1.5.3/tests/test_util/test_misc.py   cogent(Download)
from cogent.app.util import get_tmp_filename
from cogent.util.unit_test import TestCase, main
from cogent.util.misc import (iterable, max_index, min_index,
    flatten, is_iterable, is_char, is_char_or_noniterable,
    is_str_or_noniterable, not_list_tuple, list_flatten,
        """
        option_parser, opts, args = parse_command_line_parameters(
          script_description="My script",
          script_usage=[('Print help','%prog -h','')],
          version='1.0',help_on_no_arguments=False,
             'help_on_no_arguments':False,
             'command_line_args':[]}
        option_parser, opts, args = parse_command_line_parameters(**d)
        self.assertEqual(len(args),0)
 
             'command_line_args':['hello'],
             'disallow_positional_arguments':False}
        option_parser, opts, args = parse_command_line_parameters(**d)
        self.assertEqual(len(args),1)
 

src/p/y/pycogent-HEAD/tests/test_util/test_misc.py   pycogent(Download)
from cogent.app.util import get_tmp_filename
from cogent.util.unit_test import TestCase, main
from cogent.util.misc import (iterable, max_index, min_index,
    flatten, is_iterable, is_char, is_char_or_noniterable,
    is_str_or_noniterable, not_list_tuple, list_flatten,
        """
        option_parser, opts, args = parse_command_line_parameters(
          script_description="My script",
          script_usage=[('Print help','%prog -h','')],
          version='1.0',help_on_no_arguments=False,
             'help_on_no_arguments':False,
             'command_line_args':[]}
        option_parser, opts, args = parse_command_line_parameters(**d)
        self.assertEqual(len(args),0)
 
             'command_line_args':['hello'],
             'disallow_positional_arguments':False}
        option_parser, opts, args = parse_command_line_parameters(**d)
        self.assertEqual(len(args),1)
 

src/c/o/cogent-1.5.3/cogent/parse/greengenes.py   cogent(Download)
def main():
    from optparse import make_option
    from cogent.util.misc import parse_command_line_parameters
    from sys import exit, stdout
 
                  action='store_true',default=False)]
    script_info['version'] = __version__
    option_parser, opts, args = parse_command_line_parameters(**script_info)
 
    if opts.print_fields:

src/c/o/cogent-1.5.3/cogent/evolve/coevolution.py   cogent(Download)
    greater_equal, less_equal
from random import shuffle
from cogent.util.misc import parse_command_line_parameters
from cogent.maths.stats.util import Freqs
from cogent.util.array import norm
def main():
    option_parser, opts, args =\
       parse_command_line_parameters(**script_info)
 
    verbose = opts.verbose

src/p/y/pycogent-HEAD/cogent/parse/greengenes.py   pycogent(Download)
def main():
    from optparse import make_option
    from cogent.util.misc import parse_command_line_parameters
    from sys import exit, stdout
 
                  action='store_true',default=False)]
    script_info['version'] = __version__
    option_parser, opts, args = parse_command_line_parameters(**script_info)
 
    if opts.print_fields:

src/p/y/pycogent-HEAD/cogent/evolve/coevolution.py   pycogent(Download)
    greater_equal, less_equal
from random import shuffle
from cogent.util.misc import parse_command_line_parameters
from cogent.maths.stats.util import Freqs
from cogent.util.array import norm
def main():
    option_parser, opts, args =\
       parse_command_line_parameters(**script_info)
 
    verbose = opts.verbose