diff options
Diffstat (limited to 'trace-graph-main.c')
-rw-r--r-- | trace-graph-main.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/trace-graph-main.c b/trace-graph-main.c index a6507ee..b373dd2 100644 --- a/trace-graph-main.c +++ b/trace-graph-main.c | |||
@@ -189,6 +189,12 @@ void trace_graph(int argc, char **argv) | |||
189 | } | 189 | } |
190 | } | 190 | } |
191 | 191 | ||
192 | if ((argc - optind) >= 1) { | ||
193 | if (input_file) | ||
194 | usage(basename(argv[0])); | ||
195 | input_file = argv[optind]; | ||
196 | } | ||
197 | |||
192 | if (!input_file) { | 198 | if (!input_file) { |
193 | ret = stat(default_input_file, &st); | 199 | ret = stat(default_input_file, &st); |
194 | if (ret >= 0) | 200 | if (ret >= 0) |