From b4e8989bd1544048931cec25c40656c75f9f63dc Mon Sep 17 00:00:00 2001 From: Henrixounez <30901439+Henrixounez@users.noreply.github.com> Date: Mon, 4 Nov 2019 03:05:26 +0100 Subject: [PATCH] compiler: show help instead of repl on argument --- v.v | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/v.v b/v.v index 582b02aaa3..d608f723f4 100755 --- a/v.v +++ b/v.v @@ -30,6 +30,10 @@ fn main() { println('V $compiler.Version $version_hash') return } + else if '-h' in options || '--help' in options || 'help' in commands { + println(compiler.help_text) + return + } else if 'translate' in commands { println('Translating C to V will be available in V 0.3') return @@ -82,10 +86,6 @@ fn main() { exit(0) // 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 { //println('unknown command/argument\n') //println(compiler.help_text)