Ejemplo n.º 1
0
def __process_args(args, logger):
    """
    Process the command-line arguments.
    :param args: the command-line arguments list
    :raises CLAException: if an error occurs while validating and processing the command-line arguments
    """
    _method_name = '__process_args'

    cla_util = CommandLineArgUtil(_program_name, __required_arguments,
                                  __optional_arguments)
    argument_map = cla_util.process_args(args)

    target_configuration_helper.process_target_arguments(argument_map)

    return ModelContext(_program_name, argument_map)
Ejemplo n.º 2
0
def __process_args(args):
    """
    Process the command-line arguments.
    :param args: the command-line arguments list
    :raises CLAException: if an error occurs while validating and processing the command-line arguments
    """
    _method_name = '__process_args'

    cla_util = CommandLineArgUtil(_program_name, __required_arguments, __optional_arguments)
    cla_util.set_allow_multiple_models(True)
    argument_map = cla_util.process_args(args)

    target_configuration_helper.process_target_arguments(argument_map)

    model_context = ModelContext(_program_name, argument_map)
    model_context.set_ignore_missing_archive_entries(True)
    return model_context
Ejemplo n.º 3
0
def __process_args(args):
    """
    Process the command-line arguments and prompt the user for any missing information
    :param args: the command-line arguments list
    :raises CLAException: if an error occurs while validating and processing the command-line arguments
    """
    global __wlst_mode

    cla_util = CommandLineArgUtil(_program_name, __required_arguments,
                                  __optional_arguments)
    argument_map = cla_util.process_args(args)

    __wlst_mode = cla_helper.process_online_args(argument_map)
    target_configuration_helper.process_target_arguments(argument_map)
    __process_archive_filename_arg(argument_map)
    __process_variable_filename_arg(argument_map)
    __process_java_home(argument_map)

    return model_context_helper.create_context(_program_name, argument_map)