diff options
author | Jaap Keuter <jaap.keuter@xs4all.nl> | 2019-12-13 13:13:32 +0100 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2019-12-13 22:29:01 +0000 |
commit | abd83d9961d7c90896d5f941ecd97850306e3b1f (patch) | |
tree | c1cd7bd4f8464f0ec060706a348654ad31da1c50 /ui | |
parent | 8b8bf626000291c0187715196ee907c1b5265a99 (diff) |
cmdline: cleanup option string definitions
Option string composition has grown organically over time and is
depending on compilation options also. This results in somewhat complex
macro definitions and the use of the string concatenation feature of the
C compiler. This change tries to clean up some of this magic by removing
definitions of empty strings and merging of adjacent strings.
Change-Id: I968449ea9b564915bee468a0cac0e114983ceebe
Reviewed-on: https://code.wireshark.org/review/35429
Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl>
Petri-Dish: Jaap Keuter <jaap.keuter@xs4all.nl>
Tested-by: Petri Dish Buildbot
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/commandline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/commandline.c b/ui/commandline.c index a495f901ae..39a192fc41 100644 --- a/ui/commandline.c +++ b/ui/commandline.c @@ -199,7 +199,7 @@ commandline_print_usage(gboolean for_help_option) { */ #define LONGOPT_FULL_SCREEN 65536 -#define OPTSTRING OPTSTRING_CAPTURE_COMMON OPTSTRING_DISSECT_COMMON "C:g:Hh" "jJ:klm:o:P:r:R:Svw:X:Y:z:" +#define OPTSTRING OPTSTRING_CAPTURE_COMMON OPTSTRING_DISSECT_COMMON "C:g:HhjJ:klm:o:P:r:R:Svw:X:Y:z:" static const struct option long_options[] = { {"help", no_argument, NULL, 'h'}, {"read-file", required_argument, NULL, 'r' }, |