From 3c65af8b9af0bc9e9b2135d4d164dc33e6fe6fcc Mon Sep 17 00:00:00 2001 From: sh0f <30991096+sh0f@users.noreply.github.com> Date: Fri, 3 Jan 2020 01:09:24 +0800 Subject: [PATCH] cli: fix warning --- examples/cli.v | 2 ++ vlib/cli/help.v | 1 + vlib/cli/version.v | 1 + 3 files changed, 4 insertions(+) diff --git a/examples/cli.v b/examples/cli.v index 79269cd643..62f637a823 100644 --- a/examples/cli.v +++ b/examples/cli.v @@ -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, diff --git a/vlib/cli/help.v b/vlib/cli/help.v index e597c7f661..48d3c762dc 100644 --- a/vlib/cli/help.v +++ b/vlib/cli/help.v @@ -20,6 +20,7 @@ fn help_cmd() Command { name: 'help', description: 'Prints help information', execute: help_func, + parent: 0 } } diff --git a/vlib/cli/version.v b/vlib/cli/version.v index f2df16427b..9bd210e28a 100644 --- a/vlib/cli/version.v +++ b/vlib/cli/version.v @@ -14,6 +14,7 @@ fn version_cmd() Command { name: 'version' description: 'Prints version information', execute: version_func, + parent: 0 } }