diff options
author | Guy Harris <guy@alum.mit.edu> | 2018-12-12 18:16:15 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2018-12-13 03:16:13 +0000 |
commit | 43dfd45faa8af0b239a671b25ab6a398fa32f5c6 (patch) | |
tree | 3ea329a4f3f702e279169382614dcaf553e79431 /ui/commandline.h | |
parent | a34cc98b2ac5a0ad011a1c3a40ce5e59230a9498 (diff) |
Move more version-info-related stuff to version_info.c.
Have a ws_init_version_info() routine that, given an application name
string:
constructs the app-name-and-version-information string, and
saves it;
adds the initial crash information on platforms that support it,
and saves it.
Have show_version() use the saved information and take no arguments.
Add a show_help_header() routine to print the header for --help
command-line options, given a description of the application; it prints
the application name and version information, the description, and the
"See {wireshark.org URL}" line.
Use those routines in various places, including providing the
"application name" string in pcapng SHBs.
Change-Id: I0042a8fcc91aa919ad5c381a8b8674a007ce66df
Reviewed-on: https://code.wireshark.org/review/31029
Petri-Dish: Guy Harris <guy@alum.mit.edu>
Tested-by: Petri Dish Buildbot
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/commandline.h')
-rw-r--r-- | ui/commandline.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/ui/commandline.h b/ui/commandline.h index e88b0e16f7..a93d6d6bca 100644 --- a/ui/commandline.h +++ b/ui/commandline.h @@ -17,8 +17,7 @@ extern "C" { extern void commandline_print_usage(gboolean for_help_option); -extern void commandline_early_options(int argc, char *argv[], - GString *comp_info_str, GString *runtime_info_str); +extern void commandline_early_options(int argc, char *argv[]); /* Command-line options that don't have direct API calls to handle the data */ typedef struct commandline_param_info |