diff options
Diffstat (limited to 'trace-view-main.c')
-rw-r--r-- | trace-view-main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/trace-view-main.c b/trace-view-main.c index d298e68..52678ce 100644 --- a/trace-view-main.c +++ b/trace-view-main.c | |||
@@ -212,6 +212,12 @@ void trace_view(int argc, char **argv) | |||
212 | } | 212 | } |
213 | } | 213 | } |
214 | 214 | ||
215 | if ((argc - optind) >= 1) { | ||
216 | if (input_file) | ||
217 | usage(basename(argv[0])); | ||
218 | input_file = argv[optind]; | ||
219 | } | ||
220 | |||
215 | if (!input_file) { | 221 | if (!input_file) { |
216 | ret = stat(default_input_file, &st); | 222 | ret = stat(default_input_file, &st); |
217 | if (ret >= 0) | 223 | if (ret >= 0) |