2 parents ce8c075 + 641a591 commit 0833209Copy full SHA for 0833209
1 file changed
barrel/handle.cc
@@ -150,6 +150,10 @@ namespace barrel
150
151
get_opts.parse(GetOpts::no_ext_options);
152
153
+ // Interactive_ignore_line should ensure that there is at least one argument.
154
+ if (!get_opts.has_args())
155
+ throw runtime_error("main command missing");
156
+
157
const char* command1 = get_opts.pop_arg();
158
vector<MainCmd>::const_iterator main_cmd = sloppy_find(main_cmds, command1);
159
0 commit comments