From f087e819d7fa5f29e9a54884bc83cc42fcdf2175 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Thu, 2 Apr 2020 16:04:53 +0200 Subject: [PATCH] cli: minor fixes --- vlib/cli/help.v | 4 ++-- vlib/cli/version.v | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/vlib/cli/help.v b/vlib/cli/help.v index 48d3c762dc..4e8c159b16 100644 --- a/vlib/cli/help.v +++ b/vlib/cli/help.v @@ -24,8 +24,8 @@ fn help_cmd() Command { } } -fn help_func(help_cmd cli.Command) { - cmd := help_cmd.parent +fn help_func(help_cmd Command) { + cmd := help_cmd.parent full_name := cmd.full_name() mut help := '' diff --git a/vlib/cli/version.v b/vlib/cli/version.v index 9bd210e28a..42a1d8d47d 100644 --- a/vlib/cli/version.v +++ b/vlib/cli/version.v @@ -18,7 +18,7 @@ fn version_cmd() Command { } } -fn version_func(version_cmd cli.Command) { +fn version_func(version_cmd Command) { cmd := version_cmd.parent version := '${cmd.name} v${cmd.version}' println(version)