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

pref: do not check arguments after 'run' command (#6524)

This commit is contained in:
Nick Treleaven 2020-10-01 21:30:39 +01:00 committed by GitHub
parent a57e01fee7
commit 7e720a1253
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -337,8 +337,8 @@ pub fn parse_args(args []string) (&Preferences, string) {
command_pos = i command_pos = i
continue continue
} }
if command !in ['', 'run', 'build', 'build-module'] { if command !in ['', 'build', 'build-module'] {
// arguments for e.g. fmt are checked elsewhere // arguments for e.g. fmt should be checked elsewhere
continue continue
} }
eprint('Unknown argument `$arg`') eprint('Unknown argument `$arg`')