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

os: implement os.cachedir() . Use it inside os.tmpdir() too

This commit is contained in:
Delyan Angelov
2020-01-03 20:46:23 +02:00
committed by Alexander Medvednikov
parent 43895269ff
commit 67f397f888
2 changed files with 38 additions and 8 deletions

View File

@@ -79,7 +79,7 @@ pub const (
// create a new flag set for parsing command line arguments
// TODO use INT_MAX some how
pub fn new_flag_parser(args []string) &FlagParser {
return &FlagParser{args:args, max_free_args: MAX_ARGS_NUMBER}
return &FlagParser{args: args.clone(), max_free_args: MAX_ARGS_NUMBER}
}
// change the application name to be used in 'usage' output