1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

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

This commit is contained in:
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

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 { if help_cmd.args.len > 0 {
mut cmd := help_cmd.parent mut cmd := help_cmd.parent
for arg in help_cmd.args { 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 := '' mut help := ''
help += 'Usage: $cmd.full_name()' help += 'Usage: $cmd.full_name()'
if cmd.flags.len > 0 { if cmd.flags.len > 0 {