1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

v cmd: no need to panic in case of an unknown command

This commit is contained in:
S-YOU 2020-01-20 14:16:04 +09:00 committed by Alexander Medvednikov
parent d1664dc511
commit 9b3ac7efa4

3
v.v
View File

@ -132,7 +132,8 @@ fn v_command(command string, args []string) {
// v.gen_doc_html_for_module(args.last())
}
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)