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

cli: fix warning

This commit is contained in:
sh0f 2020-01-03 01:09:24 +08:00 committed by Alexander Medvednikov
parent 7a031d5e23
commit 3c65af8b9a
3 changed files with 4 additions and 0 deletions

View File

@ -10,12 +10,14 @@ fn main() {
name: 'cli', name: 'cli',
description: 'An example of the cli library', description: 'An example of the cli library',
version: '1.0.0', version: '1.0.0',
parent: 0
} }
mut greet_cmd := cli.Command{ mut greet_cmd := cli.Command{
name: 'greet', name: 'greet',
description: 'Prints greeting in different languages', description: 'Prints greeting in different languages',
execute: greet_func, execute: greet_func,
parent: 0
} }
greet_cmd.add_flag(cli.Flag{ greet_cmd.add_flag(cli.Flag{
flag: .string, flag: .string,

View File

@ -20,6 +20,7 @@ fn help_cmd() Command {
name: 'help', name: 'help',
description: 'Prints help information', description: 'Prints help information',
execute: help_func, execute: help_func,
parent: 0
} }
} }

View File

@ -14,6 +14,7 @@ fn version_cmd() Command {
name: 'version' name: 'version'
description: 'Prints version information', description: 'Prints version information',
execute: version_func, execute: version_func,
parent: 0
} }
} }