reseting to simple_file; not sure why i had to change this in the first place

This commit is contained in:
Eric 2013-08-31 16:23:40 -04:00
parent fc6ef16b8f
commit 075a44cfb4
3 changed files with 5 additions and 5 deletions

View File

@ -57,7 +57,7 @@ const char *gengetopt_args_info_help[] = {
" -X, --vpn Sends IP packets instead of Ethernet (for VPNs)", " -X, --vpn Sends IP packets instead of Ethernet (for VPNs)",
"\nAdvanced options:", "\nAdvanced options:",
" -M, --probe-module=name Select probe module (default=`tcp_synscan')", " -M, --probe-module=name Select probe module (default=`tcp_synscan')",
" -O, --output-module=name Select output module (default=`csv')", " -O, --output-module=name Select output module (default=`simple_file')",
" --probe-args=args Arguments to pass to probe module", " --probe-args=args Arguments to pass to probe module",
" --output-args=args Arguments to pass to output module", " --output-args=args Arguments to pass to output module",
" --list-output-modules List available output modules", " --list-output-modules List available output modules",
@ -191,7 +191,7 @@ void clear_args (struct gengetopt_args_info *args_info)
args_info->interface_orig = NULL; args_info->interface_orig = NULL;
args_info->probe_module_arg = gengetopt_strdup ("tcp_synscan"); args_info->probe_module_arg = gengetopt_strdup ("tcp_synscan");
args_info->probe_module_orig = NULL; args_info->probe_module_orig = NULL;
args_info->output_module_arg = gengetopt_strdup ("csv"); args_info->output_module_arg = gengetopt_strdup ("simple_file");
args_info->output_module_orig = NULL; args_info->output_module_orig = NULL;
args_info->probe_args_arg = NULL; args_info->probe_args_arg = NULL;
args_info->probe_args_orig = NULL; args_info->probe_args_orig = NULL;
@ -1006,7 +1006,7 @@ cmdline_parser_internal (
if (update_arg( (void *)&(args_info->output_module_arg), if (update_arg( (void *)&(args_info->output_module_arg),
&(args_info->output_module_orig), &(args_info->output_module_given), &(args_info->output_module_orig), &(args_info->output_module_given),
&(local_args_info.output_module_given), optarg, 0, "csv", ARG_STRING, &(local_args_info.output_module_given), optarg, 0, "simple_file", ARG_STRING,
check_ambiguity, override, 0, 0, check_ambiguity, override, 0, 0,
"output-module", 'O', "output-module", 'O',
additional_error)) additional_error))

View File

@ -86,7 +86,7 @@ option "probe-module" M "Select probe module"
optional string optional string
option "output-module" O "Select output module" option "output-module" O "Select output module"
typestr="name" typestr="name"
default="csv" default="simple_file"
optional string optional string
option "probe-args" - "Arguments to pass to probe module" option "probe-args" - "Arguments to pass to probe module"
typestr="args" typestr="args"

View File

@ -96,7 +96,7 @@ struct gengetopt_args_info
char * probe_module_arg; /**< @brief Select probe module (default='tcp_synscan'). */ char * probe_module_arg; /**< @brief Select probe module (default='tcp_synscan'). */
char * probe_module_orig; /**< @brief Select probe module original value given at command line. */ char * probe_module_orig; /**< @brief Select probe module original value given at command line. */
const char *probe_module_help; /**< @brief Select probe module help description. */ const char *probe_module_help; /**< @brief Select probe module help description. */
char * output_module_arg; /**< @brief Select output module (default='csv'). */ char * output_module_arg; /**< @brief Select output module (default='simple_file'). */
char * output_module_orig; /**< @brief Select output module original value given at command line. */ char * output_module_orig; /**< @brief Select output module original value given at command line. */
const char *output_module_help; /**< @brief Select output module help description. */ const char *output_module_help; /**< @brief Select output module help description. */
char * probe_args_arg; /**< @brief Arguments to pass to probe module. */ char * probe_args_arg; /**< @brief Arguments to pass to probe module. */