v cmd: no need to panic in case of an unknown command
parent
d1664dc511
commit
9b3ac7efa4
5
v.v
5
v.v
|
@ -114,7 +114,7 @@ fn v_command(command string, args []string) {
|
||||||
compiler.create_symlink()
|
compiler.create_symlink()
|
||||||
}
|
}
|
||||||
'runrepl' {
|
'runrepl' {
|
||||||
//TODO: remove this after 2020/02/01
|
// TODO: remove this after 2020/02/01
|
||||||
eprintln('`v runrepl` has been deprecated. Please use `v repl` instead.')
|
eprintln('`v runrepl` has been deprecated. Please use `v repl` instead.')
|
||||||
compiler.launch_tool('vrepl', 'runrepl')
|
compiler.launch_tool('vrepl', 'runrepl')
|
||||||
}
|
}
|
||||||
|
@ -132,7 +132,8 @@ fn v_command(command string, args []string) {
|
||||||
// v.gen_doc_html_for_module(args.last())
|
// v.gen_doc_html_for_module(args.last())
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
panic('v $command: unknown command\nRun "v help" for usage.')
|
eprintln('v $command: unknown command\nRun "v help" for usage.')
|
||||||
|
exit(1)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
exit(0)
|
exit(0)
|
||||||
|
|
Loading…
Reference in New Issue