v run: simplify
parent
c0491285f8
commit
caed4aad58
|
@ -184,13 +184,12 @@ fn parse_args(args []string) (&pref.Preferences, string) {
|
||||||
}
|
}
|
||||||
else if command == 'run' {
|
else if command == 'run' {
|
||||||
res.is_run = true
|
res.is_run = true
|
||||||
if command_pos + 1 < args.len {
|
if command_pos > args.len {
|
||||||
res.path = args[command_pos + 1]
|
|
||||||
res.run_args = args[command_pos+2..]
|
|
||||||
} else {
|
|
||||||
eprintln('v run: no v files listed')
|
eprintln('v run: no v files listed')
|
||||||
exit(1)
|
exit(1)
|
||||||
}
|
}
|
||||||
|
res.path = args[command_pos + 1]
|
||||||
|
res.run_args = args[command_pos+2..]
|
||||||
}
|
}
|
||||||
if command == 'build-module' {
|
if command == 'build-module' {
|
||||||
res.build_mode = .build_module
|
res.build_mode = .build_module
|
||||||
|
|
Loading…
Reference in New Issue