v run: pass all args after file.v only to script args, do not process them as v flags (#7672)

pull/7695/head
zakuro 2020-12-30 04:16:20 +09:00 committed by GitHub
parent f6d64c74c2
commit b28b41d069
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -394,6 +394,9 @@ pub fn parse_args(args []string) (&Preferences, string) {
if command == '' {
command = arg
command_pos = i
if command == 'run' {
break
}
}
continue
}