-
-
Notifications
You must be signed in to change notification settings - Fork 512
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Automatically display default values of options in the help page (#1032)
Fixes #973
- Loading branch information
Showing
12 changed files
with
154 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
test/Spectre.Console.Cli.Tests/Expectations/Help/Command_Hide_Default.Output.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
DESCRIPTION: | ||
Contains settings for a cat. | ||
|
||
USAGE: | ||
myapp cat [LEGS] [OPTIONS] <COMMAND> | ||
|
||
ARGUMENTS: | ||
[LEGS] The number of legs | ||
|
||
OPTIONS: | ||
-h, --help Prints help information | ||
-a, --alive Indicates whether or not the animal is alive | ||
-n, --name <VALUE> | ||
--agility <VALUE> The agility between 0 and 100 | ||
|
||
COMMANDS: | ||
lion <TEETH> The lion command |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 17 additions & 16 deletions
33
test/Spectre.Console.Cli.Tests/Expectations/Help/Default_Without_Args.Output.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,17 @@ | ||
DESCRIPTION: | ||
The lion command. | ||
|
||
USAGE: | ||
myapp <TEETH> [LEGS] [OPTIONS] | ||
|
||
ARGUMENTS: | ||
<TEETH> The number of teeth the lion has | ||
[LEGS] The number of legs | ||
|
||
OPTIONS: | ||
-h, --help Prints help information | ||
-a, --alive Indicates whether or not the animal is alive | ||
-n, --name <VALUE> | ||
--agility <VALUE> The agility between 0 and 100 | ||
-c <CHILDREN> The number of children the lion has | ||
DESCRIPTION: | ||
The lion command. | ||
|
||
USAGE: | ||
myapp <TEETH> [LEGS] [OPTIONS] | ||
|
||
ARGUMENTS: | ||
<TEETH> The number of teeth the lion has | ||
[LEGS] The number of legs | ||
|
||
OPTIONS: | ||
DEFAULT | ||
-h, --help Prints help information | ||
-a, --alive Indicates whether or not the animal is alive | ||
-n, --name <VALUE> | ||
--agility <VALUE> 10 The agility between 0 and 100 | ||
-c <CHILDREN> The number of children the lion has |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters