cli: minor fixes
parent
d5b2eb3c23
commit
f087e819d7
|
@ -24,8 +24,8 @@ fn help_cmd() Command {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn help_func(help_cmd cli.Command) {
|
fn help_func(help_cmd Command) {
|
||||||
cmd := help_cmd.parent
|
cmd := help_cmd.parent
|
||||||
full_name := cmd.full_name()
|
full_name := cmd.full_name()
|
||||||
|
|
||||||
mut help := ''
|
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
|
cmd := version_cmd.parent
|
||||||
version := '${cmd.name} v${cmd.version}'
|
version := '${cmd.name} v${cmd.version}'
|
||||||
println(version)
|
println(version)
|
||||||
|
|
Loading…
Reference in New Issue