summaryrefslogtreecommitdiff
path: root/capture_ui_utils.c
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2010-04-05 21:13:00 +0000
committerGerald Combs <gerald@wireshark.org>2010-04-05 21:13:00 +0000
commit1591c6c58d3af079d6f0d8693647f2ff39edf150 (patch)
tree6585643ba8e776dcb886ac660f4ef8abd8c7d6c8 /capture_ui_utils.c
parentfd26f6ccd7296256bd939a9dcbda491c34a44447 (diff)
downloadwireshark-1591c6c58d3af079d6f0d8693647f2ff39edf150.tar.gz
Note that -X stdin_descr stretches the original intent of the -X option.
svn path=/trunk/; revision=32390
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");