aboutsummaryrefslogtreecommitdiffstats
path: root/ui/commandline.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2016-10-24 02:19:50 -0700
committerGuy Harris <guy@alum.mit.edu>2016-10-24 09:22:09 +0000
commitcd64e4ece2e0e731fa9ffc07fead9420d46d8c1a (patch)
treecfe6e65fdd836105ffc8ac62217dd739f207d6b5 /ui/commandline.c
parent3acf73ec45d2548c0d8447d07a95b1b5710741fb (diff)
Move --fullscreen out of LONGOPT_CAPTURE_COMMON.
It's not a capture option, so it doesn't belong there. Change-Id: I8aa6719a5a8e90c734c7acfc01b1ba2818498de3 Reviewed-on: https://code.wireshark.org/review/18427 Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/commandline.c')
-rw-r--r--ui/commandline.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/ui/commandline.c b/ui/commandline.c
index f9c2547d19..d67a5ca16f 100644
--- a/ui/commandline.c
+++ b/ui/commandline.c
@@ -183,6 +183,17 @@ commandline_print_usage(gboolean for_help_option) {
#endif
}
+/*
+ * For long options with no corresponding short options, we define values
+ * outside the range of ASCII graphic characters, make that the last
+ * component of the entry for the long option, and have a case for that
+ * option in the switch statement.
+ *
+ * We also pick values > 65535, so as to leave values from 128 to 65535
+ * for capture options.
+ */
+#define LONGOPT_FULL_SCREEN 65536
+
#define OPTSTRING OPTSTRING_CAPTURE_COMMON "C:d:g:Hh" "jJ:kK:lm:nN:o:P:r:R:St:u:vw:X:Y:z:"
static const struct option long_options[] = {
{"help", no_argument, NULL, 'h'},
@@ -190,6 +201,7 @@ static const struct option long_options[] = {
{"read-filter", required_argument, NULL, 'R' },
{"display-filter", required_argument, NULL, 'Y' },
{"version", no_argument, NULL, 'v'},
+ {"fullscreen", no_argument, NULL, LONGOPT_FULL_SCREEN },
LONGOPT_CAPTURE_COMMON
{0, 0, 0, 0 }
};