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:
parent
7f91b75cbc
commit
a593ff930f
@ -38,6 +38,18 @@ pub mut:
|
||||
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 (
|
||||
// used for formating usage message
|
||||
space = ' '
|
||||
|
Loading…
Reference in New Issue
Block a user