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

flag: add a .free() method

This commit is contained in:
Delyan Angelov 2021-03-23 20:36:46 +02:00
parent 7f91b75cbc
commit a593ff930f
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -38,6 +38,18 @@ pub mut:
args_description string args_description string
} }
[unsafe]
fn (mut f FlagParser) free() {
unsafe {
f.args.free()
f.flags.free()
f.application_name.free()
f.application_version.free()
f.application_description.free()
f.args_description.free()
}
}
pub const ( pub const (
// used for formating usage message // used for formating usage message
space = ' ' space = ' '