mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-08-03 02:17:59 +08:00
Conditionally trim trailing periods of argument and option descriptions (#1740)
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
DESCRIPTION:
|
||||
Contains settings for a cat.
|
||||
Contains settings for a cat
|
||||
|
||||
USAGE:
|
||||
myapp cat [LEGS] [OPTIONS] <COMMAND>
|
||||
|
@ -1,5 +1,5 @@
|
||||
DESCRIPTION:
|
||||
Contains settings for a cat.
|
||||
Contains settings for a cat
|
||||
|
||||
USAGE:
|
||||
myapp cat [LEGS] [OPTIONS] <COMMAND>
|
||||
|
@ -1,5 +1,5 @@
|
||||
DESCRIPTION:
|
||||
The animal command.
|
||||
The animal command
|
||||
|
||||
USAGE:
|
||||
myapp animal [LEGS] [OPTIONS] <COMMAND>
|
||||
|
@ -1,5 +1,5 @@
|
||||
DESCRIPTION:
|
||||
Contains settings for a cat.
|
||||
Contains settings for a cat
|
||||
|
||||
USAGE:
|
||||
myapp cat [LEGS] [OPTIONS] <COMMAND>
|
||||
|
@ -1,5 +1,5 @@
|
||||
DESCRIPTION:
|
||||
The lion command.
|
||||
The lion command
|
||||
|
||||
USAGE:
|
||||
myapp <TEETH> [LEGS] [OPTIONS]
|
||||
|
@ -1,5 +1,5 @@
|
||||
DESCRIPTION:
|
||||
The dog command.
|
||||
The dog command
|
||||
|
||||
USAGE:
|
||||
myapp <AGE> [LEGS] [OPTIONS]
|
||||
|
@ -1,5 +1,5 @@
|
||||
DESCRIPTION:
|
||||
The lion command.
|
||||
The lion command
|
||||
|
||||
USAGE:
|
||||
myapp <TEETH> [LEGS] [OPTIONS]
|
||||
|
@ -1,5 +1,5 @@
|
||||
BESCHREIBUNG:
|
||||
The lion command.
|
||||
The lion command
|
||||
|
||||
VERWENDUNG:
|
||||
myapp <TEETH> [LEGS] [OPTIONEN] [KOMMANDO]
|
||||
|
@ -1,5 +1,5 @@
|
||||
DESCRIPTION:
|
||||
The lion command.
|
||||
The lion command
|
||||
|
||||
USAGE:
|
||||
myapp <TEETH> [LEGS] [OPTIONS] [COMMAND]
|
||||
|
@ -1,5 +1,5 @@
|
||||
DESCRIPTION:
|
||||
The lion command.
|
||||
The lion command
|
||||
|
||||
UTILISATION:
|
||||
myapp <TEETH> [LEGS] [OPTIONS] [COMMANDE]
|
||||
|
@ -1,5 +1,5 @@
|
||||
DESCRIZIONE:
|
||||
The lion command.
|
||||
The lion command
|
||||
|
||||
USO:
|
||||
myapp <TEETH> [LEGS] [OPZIONI] [COMANDO]
|
||||
|
@ -1,5 +1,5 @@
|
||||
説明:
|
||||
The lion command.
|
||||
The lion command
|
||||
|
||||
使用法:
|
||||
myapp <TEETH> [LEGS] [オプション] [コマンド]
|
||||
|
@ -1,5 +1,5 @@
|
||||
설명:
|
||||
The lion command.
|
||||
The lion command
|
||||
|
||||
사용법:
|
||||
myapp <TEETH> [LEGS] [옵션] [명령]
|
||||
|
@ -1,5 +1,5 @@
|
||||
DESCRIÇÃO:
|
||||
The lion command.
|
||||
The lion command
|
||||
|
||||
USO:
|
||||
myapp <TEETH> [LEGS] [OPÇÕES] [COMANDO]
|
||||
|
@ -1,5 +1,5 @@
|
||||
ОПИСАНИЕ:
|
||||
The lion command.
|
||||
The lion command
|
||||
|
||||
ИСПОЛЬЗОВАНИЕ:
|
||||
myapp <TEETH> [LEGS] [ОПЦИИ] [КОМАНДА]
|
||||
|
@ -1,5 +1,5 @@
|
||||
BESKRIVNING:
|
||||
The lion command.
|
||||
The lion command
|
||||
|
||||
ANVÄNDING:
|
||||
myapp <TEETH> [LEGS] [VAL] [KOMMANDO]
|
||||
|
@ -1,5 +1,5 @@
|
||||
描述:
|
||||
The lion command.
|
||||
The lion command
|
||||
|
||||
用法:
|
||||
myapp <TEETH> [LEGS] [选项] [命令]
|
||||
|
@ -1,5 +1,5 @@
|
||||
[bold]DESCRIPTION:[/]
|
||||
The lion command.
|
||||
The lion command
|
||||
|
||||
[bold]USAGE:[/]
|
||||
myapp []<TEETH>[/] [][[LEGS]][/] [][[OPTIONS]][/] [][[COMMAND]][/]
|
||||
|
@ -1,5 +1,5 @@
|
||||
[yellow]DESCRIPTION:[/]
|
||||
The lion command.
|
||||
The lion command
|
||||
|
||||
[yellow]USAGE:[/]
|
||||
myapp [aqua]<TEETH>[/] [silver][[LEGS]][/] [grey][[OPTIONS]][/] [aqua][[COMMAND]][/]
|
||||
|
@ -1,5 +1,5 @@
|
||||
[]DESCRIPTION:[/]
|
||||
The lion command.
|
||||
The lion command
|
||||
|
||||
[]USAGE:[/]
|
||||
myapp []<TEETH>[/] [][[LEGS]][/] [][[OPTIONS]][/] [][[COMMAND]][/]
|
||||
|
@ -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
|
@ -1,5 +1,5 @@
|
||||
DESCRIPTION:
|
||||
The lion command.
|
||||
The lion command
|
||||
|
||||
USAGE:
|
||||
myapp cat [LEGS] lion <TEETH> [OPTIONS]
|
||||
|
@ -1,5 +1,5 @@
|
||||
DESCRIPTION:
|
||||
The horse command.
|
||||
The horse command
|
||||
|
||||
USAGE:
|
||||
myapp horse [LEGS] [OPTIONS]
|
||||
|
@ -1,5 +1,5 @@
|
||||
DESCRIPTION:
|
||||
The horse command.
|
||||
The horse command
|
||||
|
||||
USAGE:
|
||||
myapp horse [LEGS] [OPTIONS]
|
||||
|
@ -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);
|
||||
|
Reference in New Issue
Block a user