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

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)
Add some args to argparse.

:param arg_parse: arg_parse

        def callmaker_argparse(arg_parse):
    """Add some args to argparse.

    :param arg_parse: arg_parse
    """
    arg_parse.add_argument('-j', '--job', dest='job_count', action='store',
                           default=1, help='Job count (default=1)', type=int)

    arg_parse.add_argument('-r', '--repeat', dest='job_repeat_count', action='store',
                           default=1, help='Job repeat count (default=1)', type=int)

    arg_parse.add_argument('-c', '--call', dest='job_call_count', action='store',
                           default=-1, help='Job call count (default=-1, -1=all item in call list)', type=int)

    arg_parse.add_argument('-f', '--calll', dest='call_list_file', action='store',
                           help='Call list file', required=True, type=str)

    arg_parse.add_argument('-l', '--log', dest='log_file', action='store',
                           help='Log file', type=str)

    arg_parse.add_argument('-v', dest='verbose', action='store_true',
                           help='Verbose output')

    arg_parse.add_argument('-i', '--ignore', type=str, nargs='*',
                           dest='ignore_call',
                           help='comma separated regexps for ignore call name')

    arg_parse.add_argument('-s', '--seeds', type=float, nargs='*',
                           dest='seeds',
                           help='seeds')
        


src/c/e/cejob-0.0.6/src/cejob/ext/__init__.py   cejob(Download)
from cejob.ext.call_maker import CallMaker, callmaker_main, callmaker_argparse