cli: fix warning
parent
7a031d5e23
commit
3c65af8b9a
|
@ -10,12 +10,14 @@ fn main() {
|
|||
name: 'cli',
|
||||
description: 'An example of the cli library',
|
||||
version: '1.0.0',
|
||||
parent: 0
|
||||
}
|
||||
|
||||
mut greet_cmd := cli.Command{
|
||||
name: 'greet',
|
||||
description: 'Prints greeting in different languages',
|
||||
execute: greet_func,
|
||||
parent: 0
|
||||
}
|
||||
greet_cmd.add_flag(cli.Flag{
|
||||
flag: .string,
|
||||
|
|
|
@ -20,6 +20,7 @@ fn help_cmd() Command {
|
|||
name: 'help',
|
||||
description: 'Prints help information',
|
||||
execute: help_func,
|
||||
parent: 0
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -14,6 +14,7 @@ fn version_cmd() Command {
|
|||
name: 'version'
|
||||
description: 'Prints version information',
|
||||
execute: version_func,
|
||||
parent: 0
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue