cli: minor fixes

pull/4200/head
Alexander Medvednikov 2020-04-02 16:04:53 +02:00
parent d5b2eb3c23
commit f087e819d7
2 changed files with 3 additions and 3 deletions

View File

@ -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 := ''

View File

@ -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)