v: show an error and exit, when no module name is given in `v build-module` (#10338)
parent
117295e1f3
commit
b0c9a87292
|
@ -634,6 +634,10 @@ pub fn parse_args(known_external_commands []string, args []string) (&Preferences
|
||||||
}
|
}
|
||||||
if command == 'build-module' {
|
if command == 'build-module' {
|
||||||
res.build_mode = .build_module
|
res.build_mode = .build_module
|
||||||
|
if command_pos + 1 >= args.len {
|
||||||
|
eprintln('v build-module: no module specified')
|
||||||
|
exit(1)
|
||||||
|
}
|
||||||
res.path = args[command_pos + 1]
|
res.path = args[command_pos + 1]
|
||||||
}
|
}
|
||||||
// keep only the unique res.build_options:
|
// keep only the unique res.build_options:
|
||||||
|
|
Loading…
Reference in New Issue