cli: minor fixes
parent
d5b2eb3c23
commit
f087e819d7
|
@ -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 := ''
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue