From b28b41d069a8e594ddc34ec01d5aed825378e98b Mon Sep 17 00:00:00 2001 From: zakuro Date: Wed, 30 Dec 2020 04:16:20 +0900 Subject: [PATCH] v run: pass all args after file.v only to script args, do not process them as v flags (#7672) --- vlib/v/pref/pref.v | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vlib/v/pref/pref.v b/vlib/v/pref/pref.v index 4777c0994c..5b5d3f15e6 100644 --- a/vlib/v/pref/pref.v +++ b/vlib/v/pref/pref.v @@ -394,6 +394,9 @@ pub fn parse_args(args []string) (&Preferences, string) { if command == '' { command = arg command_pos = i + if command == 'run' { + break + } } continue }