From 1591c6c58d3af079d6f0d8693647f2ff39edf150 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Mon, 5 Apr 2010 21:13:00 +0000 Subject: Note that -X stdin_descr stretches the original intent of the -X option. svn path=/trunk/; revision=32390 --- capture_ui_utils.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'capture_ui_utils.c') 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"); -- cgit v1.2.3