Conditionally trim trailing periods of argument and option descriptions (#1740)

This commit is contained in:
Tonttu
2025-02-11 23:13:30 +02:00
committed by GitHub
parent c1eb94c1db
commit 11a320c7c9
37 changed files with 78 additions and 69 deletions

View File

@ -1,5 +1,5 @@
DESCRIPTION:
Contains settings for a cat.
Contains settings for a cat
USAGE:
myapp cat [LEGS] [OPTIONS] <COMMAND>

View File

@ -1,5 +1,5 @@
DESCRIPTION:
Contains settings for a cat.
Contains settings for a cat
USAGE:
myapp cat [LEGS] [OPTIONS] <COMMAND>

View File

@ -1,5 +1,5 @@
DESCRIPTION:
The animal command.
The animal command
USAGE:
myapp animal [LEGS] [OPTIONS] <COMMAND>

View File

@ -1,5 +1,5 @@
DESCRIPTION:
Contains settings for a cat.
Contains settings for a cat
USAGE:
myapp cat [LEGS] [OPTIONS] <COMMAND>

View File

@ -1,5 +1,5 @@
DESCRIPTION:
The lion command.
The lion command
USAGE:
myapp <TEETH> [LEGS] [OPTIONS]

View File

@ -1,5 +1,5 @@
DESCRIPTION:
The dog command.
The dog command
USAGE:
myapp <AGE> [LEGS] [OPTIONS]

View File

@ -1,5 +1,5 @@
DESCRIPTION:
The lion command.
The lion command
USAGE:
myapp <TEETH> [LEGS] [OPTIONS]

View File

@ -1,5 +1,5 @@
BESCHREIBUNG:
The lion command.
The lion command
VERWENDUNG:
myapp <TEETH> [LEGS] [OPTIONEN] [KOMMANDO]

View File

@ -1,5 +1,5 @@
DESCRIPTION:
The lion command.
The lion command
USAGE:
myapp <TEETH> [LEGS] [OPTIONS] [COMMAND]

View File

@ -1,5 +1,5 @@
DESCRIPTION:
The lion command.
The lion command
UTILISATION:
myapp <TEETH> [LEGS] [OPTIONS] [COMMANDE]

View File

@ -1,5 +1,5 @@
DESCRIZIONE:
The lion command.
The lion command
USO:
myapp <TEETH> [LEGS] [OPZIONI] [COMANDO]

View File

@ -1,5 +1,5 @@
説明:
The lion command.
The lion command
使用法:
myapp <TEETH> [LEGS] [オプション] [コマンド]

View File

@ -1,5 +1,5 @@
설명:
The lion command.
The lion command
사용법:
myapp <TEETH> [LEGS] [옵션] [명령]

View File

@ -1,5 +1,5 @@
DESCRIÇÃO:
The lion command.
The lion command
USO:
myapp <TEETH> [LEGS] [OPÇÕES] [COMANDO]

View File

@ -1,5 +1,5 @@
ОПИСАНИЕ:
The lion command.
The lion command
ИСПОЛЬЗОВАНИЕ:
myapp <TEETH> [LEGS] [ОПЦИИ] [КОМАНДА]

View File

@ -1,5 +1,5 @@
BESKRIVNING:
The lion command.
The lion command
ANVÄNDING:
myapp <TEETH> [LEGS] [VAL] [KOMMANDO]

View File

@ -1,5 +1,5 @@
描述:
The lion command.
The lion command
用法:
myapp <TEETH> [LEGS] [选项] [命令]

View File

@ -1,5 +1,5 @@
[bold]DESCRIPTION:[/]
The lion command.
The lion command
[bold]USAGE:[/]
myapp []<TEETH>[/] [][[LEGS]][/] [][[OPTIONS]][/] [][[COMMAND]][/]

View File

@ -1,5 +1,5 @@
[yellow]DESCRIPTION:[/]
The lion command.
The lion command
[yellow]USAGE:[/]
myapp [aqua]<TEETH>[/] [silver][[LEGS]][/] [grey][[OPTIONS]][/] [aqua][[COMMAND]][/]

View File

@ -1,5 +1,5 @@
[]DESCRIPTION:[/]
The lion command.
The lion command
[]USAGE:[/]
myapp []<TEETH>[/] [][[LEGS]][/] [][[OPTIONS]][/] [][[COMMAND]][/]

View File

@ -1,9 +1,15 @@
USAGE:
myapp [OPTIONS] <COMMAND>
DESCRIPTION:
The dog command.
USAGE:
myapp dog <AGE> [LEGS] [OPTIONS]
ARGUMENTS:
<AGE>
[LEGS] The number of legs.
OPTIONS:
-h, --help Prints help information
COMMANDS:
dog <AGE> The dog command.
horse The horse command.
-h, --help Prints help information.
-a, --alive Indicates whether or not the animal is alive.
-n, --name <VALUE>
-g, --good-boy

View File

@ -1,5 +1,5 @@
DESCRIPTION:
The lion command.
The lion command
USAGE:
myapp cat [LEGS] lion <TEETH> [OPTIONS]

View File

@ -1,5 +1,5 @@
DESCRIPTION:
The horse command.
The horse command
USAGE:
myapp horse [LEGS] [OPTIONS]

View File

@ -1,5 +1,5 @@
DESCRIPTION:
The horse command.
The horse command
USAGE:
myapp horse [LEGS] [OPTIONS]

View File

@ -132,7 +132,7 @@ public sealed partial class CommandAppTests
});
// When
var result = fixture.Run("--help");
var result = fixture.Run("dog", "--help");
// Then
return Verifier.Verify(result.Output);