cli: make help fn's public (#13275)

pull/13276/head
Tim Basel 2022-01-25 14:58:06 +01:00 committed by GitHub
parent 95d86324c3
commit 1fdbdf4a6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ fn help_cmd() Command {
}
}
fn print_help_for_command(help_cmd Command) ? {
pub fn print_help_for_command(help_cmd Command) ? {
if help_cmd.args.len > 0 {
mut cmd := help_cmd.parent
for arg in help_cmd.args {
@ -54,7 +54,7 @@ fn print_help_for_command(help_cmd Command) ? {
}
}
fn (cmd Command) help_message() string {
pub fn (cmd Command) help_message() string {
mut help := ''
help += 'Usage: $cmd.full_name()'
if cmd.flags.len > 0 {