diff options
author | Guy Harris <guy@alum.mit.edu> | 2016-06-27 17:21:24 -0700 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2016-06-28 00:21:53 +0000 |
commit | 3f49e897f674008c27de9833b8ba2d119dc22ef4 (patch) | |
tree | 99849e6a9b334fde27e527eb5ff7c84b98c07fa1 /ui/commandline.c | |
parent | 72d9785cfc0d1d7e2eeebc05997d0efcec5dfa7f (diff) | |
download | wireshark-3f49e897f674008c27de9833b8ba2d119dc22ef4.tar.gz |
Pull quit_after_cap out of the global capture options.
Really, all the GUI-related options should be pulled out, so they're not
cluttering up dumpcap and tshark.
Change-Id: I0276dee2be48bae3498a819d8c0c2747fe1352e7
Reviewed-on: https://code.wireshark.org/review/16180
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'ui/commandline.c')
-rw-r--r-- | ui/commandline.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/commandline.c b/ui/commandline.c index 7cb8dd3c53..56b621b69e 100644 --- a/ui/commandline.c +++ b/ui/commandline.c @@ -69,6 +69,8 @@ #if defined(HAVE_LIBPCAP) || defined(HAVE_EXTCAP) capture_options global_capture_opts; + +gboolean quit_after_cap; #endif void @@ -393,6 +395,8 @@ void commandline_other_options(int argc, char *argv[], commandline_param_info_t* param_info->enable_heur_slist = NULL; param_info->disable_heur_slist = NULL; + quit_after_cap = getenv("WIRESHARK_QUIT_AFTER_CAPTURE") ? TRUE : FALSE; + while ((opt = getopt_long(argc, argv, optstring, long_options, NULL)) != -1) { switch (opt) { /*** capture option specific ***/ |