diff options
author | Dario Lombardo <lomato@gmail.com> | 2018-11-03 21:45:36 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2018-11-05 05:58:12 +0000 |
commit | 2be2febfc6dd606ef667e05a323a1b0bdc726f62 (patch) | |
tree | 3580d467e634c1502c2866bdf8b72d6c6a65814f /extcap | |
parent | 945d441b2484f901f1c0c3696bf4cdec4838cb40 (diff) |
extcap: change boolean to boolflag for --debug option.
Change-Id: I6a42e689fa9a914f7f3bee1c1ade2218573a1c3f
Reviewed-on: https://code.wireshark.org/review/30502
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'extcap')
-rw-r--r-- | extcap/extcap-base.c | 2 | ||||
-rw-r--r-- | extcap/extcap-base.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/extcap/extcap-base.c b/extcap/extcap-base.c index 4a1cc03e84..2e8f7cd9dd 100644 --- a/extcap/extcap-base.c +++ b/extcap/extcap-base.c @@ -312,7 +312,7 @@ void extcap_init_custom_log(const char* filename) void extcap_config_debug(unsigned* count) { printf("arg {number=%u}{call=--debug}{display=Run in debug mode}" - "{type=boolean}{default=false}{tooltip=Print debug messages}{required=false}" + "{type=boolflag}{default=false}{tooltip=Print debug messages}{required=false}" "{group=Debug}\n", (*count)++); printf("arg {number=%u}{call=--debug-file}{display=Use a file for debug}" "{type=string}{tooltip=Set a file where the debug messages are written}{required=false}" diff --git a/extcap/extcap-base.h b/extcap/extcap-base.h index 322d08a9ab..c3a95bedb3 100644 --- a/extcap/extcap-base.h +++ b/extcap/extcap-base.h @@ -56,7 +56,7 @@ { "capture", no_argument, NULL, EXTCAP_OPT_CAPTURE}, \ { "extcap-capture-filter", required_argument, NULL, EXTCAP_OPT_CAPTURE_FILTER}, \ { "fifo", required_argument, NULL, EXTCAP_OPT_FIFO}, \ - { "debug", required_argument, NULL, EXTCAP_OPT_DEBUG}, \ + { "debug", no_argument, NULL, EXTCAP_OPT_DEBUG}, \ { "debug-file", required_argument, NULL, EXTCAP_OPT_DEBUG_FILE} typedef struct _extcap_parameters |