mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
compiler: show help instead of repl on argument
This commit is contained in:
parent
b5d457b5ce
commit
b4e8989bd1
8
v.v
8
v.v
@ -30,6 +30,10 @@ fn main() {
|
|||||||
println('V $compiler.Version $version_hash')
|
println('V $compiler.Version $version_hash')
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
else if '-h' in options || '--help' in options || 'help' in commands {
|
||||||
|
println(compiler.help_text)
|
||||||
|
return
|
||||||
|
}
|
||||||
else if 'translate' in commands {
|
else if 'translate' in commands {
|
||||||
println('Translating C to V will be available in V 0.3')
|
println('Translating C to V will be available in V 0.3')
|
||||||
return
|
return
|
||||||
@ -82,10 +86,6 @@ fn main() {
|
|||||||
exit(0)
|
exit(0)
|
||||||
// v.gen_doc_html_for_module(args.last())
|
// v.gen_doc_html_for_module(args.last())
|
||||||
}
|
}
|
||||||
else if '-h' in options || '--help' in options || 'help' in commands {
|
|
||||||
println(compiler.help_text)
|
|
||||||
return
|
|
||||||
}
|
|
||||||
else {
|
else {
|
||||||
//println('unknown command/argument\n')
|
//println('unknown command/argument\n')
|
||||||
//println(compiler.help_text)
|
//println(compiler.help_text)
|
||||||
|
Loading…
Reference in New Issue
Block a user