mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vself: fix command line args (#11072)
This commit is contained in:
parent
91ade5bf8c
commit
b95224aa20
@ -13,8 +13,7 @@ fn main() {
|
||||
recompilation.must_be_enabled(vroot, 'Please install V from source, to use `v self` .')
|
||||
os.chdir(vroot)
|
||||
os.setenv('VCOLORS', 'always', true)
|
||||
self_idx := os.args.index('self')
|
||||
args := os.args[1..self_idx]
|
||||
args := os.args[1..].filter(it != 'self')
|
||||
jargs := args.join(' ')
|
||||
obinary := cmdline.option(args, '-o', '')
|
||||
sargs := if obinary != '' { jargs } else { '$jargs -o v2' }
|
||||
|
Loading…
Reference in New Issue
Block a user