Exemple #1
0
def parse_cmd_args(sys_argv):
    """ Parse cmd args for scanners
    :param sys_argv: argv from command line
    :type sys_argv: list of string

    :returns: a namespace parsed from sys argv
    :rtype: args.namespace
    """
    parser = get_base_args_parser()
    args = parser.parse_args(sys_argv[1:])
    return args
Exemple #2
0
def parse_cmd_args(sys_argv):
    """ Parse cmd args for workers
    :param sys_argv: argv from command line
    :type sys_argv: list of string

    :returns: a namespace parsed from sys argv
    :rtype: args.namespace
    """
    parser = get_base_args_parser()
    parser.add_argument("--dummy-run",
                        action="store_true",
                        help="use this to skip etl process for test goal")
    args = parser.parse_args(sys_argv[1:])
    return args
Exemple #3
0
def parse_cmd_args(sys_argv):
    """ Parse cmd args for workers
    :param sys_argv: argv from command line
    :type sys_argv: list of string

    :returns: a namespace parsed from sys argv
    :rtype: args.namespace
    """
    parser = get_base_args_parser()
    parser.add_argument(
        "--dummy-run",
        action="store_true",
        help="use this to skip etl process for test goal"
    )
    args = parser.parse_args(sys_argv[1:])
    return args