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

checker: minor fixes

This commit is contained in:
Alexander Medvednikov
2020-02-20 15:42:56 +01:00
parent 72bbec89a9
commit 296e736f5b
4 changed files with 22 additions and 19 deletions

View File

@@ -37,7 +37,7 @@ pub fn new_v(args []string) &compiler.V {
exit(1)
}
mut out_name := cmdline.option(args, '-o', '')
mut dir := args.last()
mut dir := args[args.len-1]//.last()
if 'run' in args {
args_after_run := cmdline.only_non_options( cmdline.options_after(args,['run']) )
dir = if args_after_run.len>0 { args_after_run[0] } else { '' }