From b95224aa209d57ea03bd24b068cbbc7394f64495 Mon Sep 17 00:00:00 2001 From: yuyi Date: Fri, 6 Aug 2021 11:21:00 +0800 Subject: [PATCH] vself: fix command line args (#11072) --- cmd/tools/vself.v | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/tools/vself.v b/cmd/tools/vself.v index 06d218979f..951b1cd7cf 100644 --- a/cmd/tools/vself.v +++ b/cmd/tools/vself.v @@ -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' }