mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
os: add os.quoted_path/1, use it consistently for running V itself
This commit is contained in:
@ -505,7 +505,7 @@ fn parse_arguments(args []string) Config {
|
||||
fn main() {
|
||||
if os.args.len < 2 || '-h' in os.args || '-help' in os.args || '--help' in os.args
|
||||
|| os.args[1..] == ['doc', 'help'] {
|
||||
os.system('$vexe help doc')
|
||||
os.system('${os.quoted_path(vexe)} help doc')
|
||||
exit(0)
|
||||
}
|
||||
args := os.args[2..].clone()
|
||||
|
Reference in New Issue
Block a user