]> sigrok.org Git - sigrok-cli.git/blobdiff - sigrok-cli.c
cli: Add -A (alias for --protocol-decoder-annotation).
[sigrok-cli.git] / sigrok-cli.c
index 52e894ab5be108223be7a36e89011ce8f6b15298..4ea52cbd3f3c6c6c2973c3c589ff8ad58eef4fb4 100644 (file)
@@ -90,7 +90,7 @@ static GOptionEntry optargs[] = {
                        "Protocol decoders to run", NULL},
        {"protocol-decoder-stack", 's', 0, G_OPTION_ARG_STRING, &opt_pd_stack,
                        "Protocol decoder stack", NULL},
-       {"protocol-decoder-annotation", 0, 0, G_OPTION_ARG_STRING, &opt_pd_annotation,
+       {"protocol-decoder-annotation", 'A', 0, G_OPTION_ARG_STRING, &opt_pd_annotation,
                        "Protocol decoder annotation to show", NULL},
        {"time", 0, 0, G_OPTION_ARG_STRING, &opt_time,
                        "How long to sample (ms)", NULL},
@@ -830,6 +830,9 @@ static struct sr_input_format *determine_input_file_format(
                g_critical("Error: no matching input module found.");
                return NULL;
        }
+
+       g_debug("cli: Autodetected '%s' input format for file '%s'.",
+               inputs[i]->id, filename);
                
        return inputs[i];
 }