aboutsummaryrefslogtreecommitdiffstats
path: root/capture_ui_utils.c
diff options
context:
space:
mode:
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2010-04-05 21:13:00 +0000
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>2010-04-05 21:13:00 +0000
commit13e66d10ee38c1e8ee22c742420a627fdc1c010e (patch)
tree6585643ba8e776dcb886ac660f4ef8abd8c7d6c8 /capture_ui_utils.c
parent7d7f9d7b47cc8328131009fce3cd1f56519c604a (diff)
Note that -X stdin_descr stretches the original intent of the -X option.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32390 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'capture_ui_utils.c')
-rw-r--r--capture_ui_utils.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/capture_ui_utils.c b/capture_ui_utils.c
index f6ff8c3fb8..c8f9be7dc8 100644
--- a/capture_ui_utils.c
+++ b/capture_ui_utils.c
@@ -157,6 +157,12 @@ get_interface_descriptive_name(const char *if_name)
/* Yes - make a copy of that. */
descr = g_strdup(descr);
} else if (strcmp(if_name, "-") == 0) {
+ /*
+ * Strictly speaking, -X (extension) options are for modules, e.g. Lua
+ * and using one here stretches that definition. However, this doesn't
+ * waste a single-letter option on something that might be rarely used
+ * and is backward-compatible to 1.0.
+ */
descr = g_strdup(ex_opt_get_nth("stdin_descr", 0));
if (!descr) {
descr = g_strdup("Standard input");