X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;ds=inline;f=options.c;h=c8b51ec1e353c2dfb2be035886ad6a58199adc60;hb=3d7bf9792393c39ba8bbb3ad51d0a2e59dfb20ba;hp=03c001cd2df25d486d6f69f5690dfdc73ab5688a;hpb=44ac76145c74a503916ffc9a29701b3226d8c0c6;p=sigrok-cli.git diff --git a/options.c b/options.c index 03c001c..c8b51ec 100644 --- a/options.c +++ b/options.c @@ -181,6 +181,11 @@ int parse_options(int argc, char **argv) opt_output_file = g_strdup(output_file_array[0]); } + if (1 != argc) { + g_critical("superfluous command line argument \"%s\"", argv[1]); + goto done; + } + ret = 0; done: