-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflags-global.v
More file actions
21 lines (17 loc) · 765 Bytes
/
flags-global.v
File metadata and controls
21 lines (17 loc) · 765 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
module vargus
// add_global_flag_int handles adding of global flags to the command with integer value
pub fn (mut c Commander) add_global_flag_int(fc IntFlagConfig) {
c.create_flag(fc, .global)
}
// add_global_flag_string handles adding of global flags to the command with string value
pub fn (mut c Commander) add_global_flag_string(fc StringFlagConfig) {
c.create_flag(fc, .global)
}
// add_global_flag_float handles adding of global flags to the command with float value
pub fn (mut c Commander) add_global_flag_float(fc FloatFlagConfig) {
c.create_flag(fc, .global)
}
// add_global_flag_bool handles adding of global flags to the command with boolean value
pub fn (mut c Commander) add_global_flag_bool(fc BoolFlagConfig) {
c.create_flag(fc, .global)
}