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:
parent
95d86324c3
commit
1fdbdf4a6b
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user