From 7ab7149115ad367f929cf6d7f26da6c5c16b8498 Mon Sep 17 00:00:00 2001 From: David Legrand Date: Wed, 13 May 2026 09:38:23 +0200 Subject: [PATCH] cli: drop trailing periods and use 'Print' in default help/version/man descriptions (#27123) --- vlib/cli/help.v | 4 ++-- vlib/cli/man.v | 4 ++-- vlib/cli/testdata/default_command_flag.out | 4 ++-- vlib/cli/testdata/default_help.out | 4 ++-- vlib/cli/testdata/default_help_flag_no_command.out | 6 +++--- vlib/cli/testdata/long_description.out | 4 ++-- vlib/cli/version.v | 4 ++-- 7 files changed, 15 insertions(+), 15 deletions(-) diff --git a/vlib/cli/help.v b/vlib/cli/help.v index 9a1baa5ef..9f5d7148b 100644 --- a/vlib/cli/help.v +++ b/vlib/cli/help.v @@ -13,7 +13,7 @@ fn help_flag(with_abbrev bool) Flag { flag: .bool name: 'help' abbrev: sabbrev - description: 'Prints help information.' + description: 'Print help information' } } @@ -21,7 +21,7 @@ fn help_cmd() Command { return Command{ name: 'help' usage: '' - description: 'Prints help information.' + description: 'Print help information' execute: print_help_for_command } } diff --git a/vlib/cli/man.v b/vlib/cli/man.v index b3a19edd2..186da879a 100644 --- a/vlib/cli/man.v +++ b/vlib/cli/man.v @@ -6,7 +6,7 @@ fn man_flag() Flag { return Flag{ flag: .bool name: 'man' - description: 'Prints the auto-generated manpage.' + description: 'Print the auto-generated manpage' } } @@ -14,7 +14,7 @@ fn man_cmd() Command { return Command{ name: 'man' usage: '' - description: 'Prints the auto-generated manpage.' + description: 'Print the auto-generated manpage' execute: print_manpage_for_command } } diff --git a/vlib/cli/testdata/default_command_flag.out b/vlib/cli/testdata/default_command_flag.out index fa63b0ccf..92dd82780 100644 --- a/vlib/cli/testdata/default_command_flag.out +++ b/vlib/cli/testdata/default_command_flag.out @@ -1,7 +1,7 @@ Usage: [flags] [commands] Flags: - -version Prints version information. + -version Print version information Commands: - help Prints help information. + help Print help information diff --git a/vlib/cli/testdata/default_help.out b/vlib/cli/testdata/default_help.out index f8cfda7f5..7e945d42d 100644 --- a/vlib/cli/testdata/default_help.out +++ b/vlib/cli/testdata/default_help.out @@ -1,7 +1,7 @@ Usage: [flags] [commands] Flags: - -help Prints help information. + -help Print help information Commands: - help Prints help information. + help Print help information diff --git a/vlib/cli/testdata/default_help_flag_no_command.out b/vlib/cli/testdata/default_help_flag_no_command.out index c55813db4..45e3d9b14 100644 --- a/vlib/cli/testdata/default_help_flag_no_command.out +++ b/vlib/cli/testdata/default_help_flag_no_command.out @@ -1,8 +1,8 @@ Usage: foo [flags] [commands] Flags: - -help Prints help information. - -man Prints the auto-generated manpage. + -help Print help information + -man Print the auto-generated manpage Commands: - man Prints the auto-generated manpage. + man Print the auto-generated manpage diff --git a/vlib/cli/testdata/long_description.out b/vlib/cli/testdata/long_description.out index 27a6f4ce5..6e05abb4f 100644 --- a/vlib/cli/testdata/long_description.out +++ b/vlib/cli/testdata/long_description.out @@ -6,5 +6,5 @@ Flags: -fun '{"uri":"mqtt://broker.emqx.io:1883","topic":"test_emq/1 '{"uri":"mqtt://broker.emqx.io:1883","topic":"test_emq/1","filters":[{"producer_id":0,"trace_group":2,"string_id ":3001},{"string_id":3002}]}' - -help Prints help information. - -man Prints the auto-generated manpage. + -help Print help information + -man Print the auto-generated manpage diff --git a/vlib/cli/version.v b/vlib/cli/version.v index 7f18439e6..b4c2f9abe 100644 --- a/vlib/cli/version.v +++ b/vlib/cli/version.v @@ -6,14 +6,14 @@ fn version_flag(with_abbrev bool) Flag { flag: .bool name: 'version' abbrev: sabbrev - description: 'Prints version information.' + description: 'Print version information' } } fn version_cmd() Command { return Command{ name: 'version' - description: 'Prints version information.' + description: 'Print version information' execute: print_version_for_command } } -- 2.39.5