-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(commandlinehelp): Order parameters in the "Usage" section
In a command's "Usage" section, order the parameters. Positional parameters are ordered by their position, followed by named parameters (required parameters first, then ordered by name) and switch parameters (ordered by name)
- Loading branch information
Showing
8 changed files
with
310 additions
and
7 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
125 changes: 125 additions & 0 deletions
125
...neHelp.Test/_referenceResults/CommandPageTest.Command_parameters_are_ordered.approved.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,125 @@ | ||
<!-- | ||
<auto-generated> | ||
The contents of this file were generated by a tool. | ||
Changes to this file may be list if the file is regenerated | ||
</auto-generated> | ||
--> | ||
|
||
# `CommandName` Command | ||
|
||
**Application:** [TestApp](../index.md) | ||
**Version:** 1.2.3 | ||
|
||
## Usage | ||
|
||
```txt | ||
TestApp CommandName [<VALUE>] | ||
[<VALUE>] | ||
--paramC <VALUE> | ||
--paramD <VALUE> | ||
[--paramA <VALUE>] | ||
[--paramB <VALUE>] | ||
[-A] | ||
[--B] | ||
``` | ||
|
||
## Parameters | ||
|
||
| Position | Name | Short Name | Required | Description | | ||
| -------------------------- | --------------------------- | ----------------- | -------- | ----------- | | ||
| [1](#parameter-position-1) | | | No | | | ||
| [2](#parameter-position-2) | | | No | | | ||
| | [paramA](#parama-parameter) | | No | | | ||
| | [paramB](#paramb-parameter) | | No | | | ||
| | [paramC](#paramc-parameter) | | Yes | | | ||
| | [paramD](#paramd-parameter) | | Yes | | | ||
| | [B](#b-parameter) | | No | | | ||
| | | [A](#a-parameter) | No | | | ||
|
||
### Parameter (Position 1) | ||
|
||
| | | | ||
| -------------- | ------ | | ||
| Position: | 1 | | ||
| Required: | No | | ||
| Default value: | *None* | | ||
|
||
___ | ||
|
||
### Parameter (Position 2) | ||
|
||
| | | | ||
| -------------- | ------ | | ||
| Position: | 2 | | ||
| Required: | No | | ||
| Default value: | *None* | | ||
|
||
___ | ||
|
||
### `paramA` Parameter | ||
|
||
| | | | ||
| -------------- | ----------------- | | ||
| Name: | paramA | | ||
| Position: | *Named parameter* | | ||
| Required: | No | | ||
| Default value: | *None* | | ||
|
||
___ | ||
|
||
### `paramB` Parameter | ||
|
||
| | | | ||
| -------------- | ----------------- | | ||
| Name: | paramB | | ||
| Position: | *Named parameter* | | ||
| Required: | No | | ||
| Default value: | *None* | | ||
|
||
___ | ||
|
||
### `paramC` Parameter | ||
|
||
| | | | ||
| -------------- | ----------------- | | ||
| Name: | paramC | | ||
| Position: | *Named parameter* | | ||
| Required: | Yes | | ||
| Default value: | *None* | | ||
|
||
___ | ||
|
||
### `paramD` Parameter | ||
|
||
| | | | ||
| -------------- | ----------------- | | ||
| Name: | paramD | | ||
| Position: | *Named parameter* | | ||
| Required: | Yes | | ||
| Default value: | *None* | | ||
|
||
___ | ||
|
||
### `B` Parameter | ||
|
||
| | | | ||
| -------------- | ------------------------- | | ||
| Name: | B | | ||
| Position: | *None (Switch Parameter)* | | ||
| Required: | *No (Switch Parameter)* | | ||
| Default value: | `false` | | ||
|
||
___ | ||
|
||
### `A` Parameter | ||
|
||
| | | | ||
| -------------- | ------------------------- | | ||
| Name: | A | | ||
| Position: | *None (Switch Parameter)* | | ||
| Required: | *No (Switch Parameter)* | | ||
| Default value: | `false` | | ||
|
||
___ | ||
|
||
*Documentation generated by [MdDocs](https://github.com/ap0llo/mddocs)* |
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
129 changes: 129 additions & 0 deletions
129
...renceResults/SingleCommandApplicationPageTest.Command_parameters_are_ordered.approved.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,129 @@ | ||
<!-- | ||
<auto-generated> | ||
The contents of this file were generated by a tool. | ||
Changes to this file may be list if the file is regenerated | ||
</auto-generated> | ||
--> | ||
|
||
# TestApp Command Line Reference | ||
|
||
**Version:** 1.2.3 | ||
|
||
## Usage | ||
|
||
Usage line 1 | ||
Usage line2 | ||
|
||
## Usage | ||
|
||
```txt | ||
TestApp [<VALUE>] | ||
[<VALUE>] | ||
--paramC <VALUE> | ||
--paramD <VALUE> | ||
[--paramA <VALUE>] | ||
[--paramB <VALUE>] | ||
[-A] | ||
[--B] | ||
``` | ||
|
||
## Parameters | ||
|
||
| Position | Name | Short Name | Required | Description | | ||
| -------------------------- | --------------------------- | ----------------- | -------- | ----------- | | ||
| [1](#parameter-position-1) | | | No | | | ||
| [2](#parameter-position-2) | | | No | | | ||
| | [paramA](#parama-parameter) | | No | | | ||
| | [paramB](#paramb-parameter) | | No | | | ||
| | [paramC](#paramc-parameter) | | Yes | | | ||
| | [paramD](#paramd-parameter) | | Yes | | | ||
| | [B](#b-parameter) | | No | | | ||
| | | [A](#a-parameter) | No | | | ||
|
||
### Parameter (Position 1) | ||
|
||
| | | | ||
| -------------- | ------ | | ||
| Position: | 1 | | ||
| Required: | No | | ||
| Default value: | *None* | | ||
|
||
___ | ||
|
||
### Parameter (Position 2) | ||
|
||
| | | | ||
| -------------- | ------ | | ||
| Position: | 2 | | ||
| Required: | No | | ||
| Default value: | *None* | | ||
|
||
___ | ||
|
||
### `paramA` Parameter | ||
|
||
| | | | ||
| -------------- | ----------------- | | ||
| Name: | paramA | | ||
| Position: | *Named parameter* | | ||
| Required: | No | | ||
| Default value: | *None* | | ||
|
||
___ | ||
|
||
### `paramB` Parameter | ||
|
||
| | | | ||
| -------------- | ----------------- | | ||
| Name: | paramB | | ||
| Position: | *Named parameter* | | ||
| Required: | No | | ||
| Default value: | *None* | | ||
|
||
___ | ||
|
||
### `paramC` Parameter | ||
|
||
| | | | ||
| -------------- | ----------------- | | ||
| Name: | paramC | | ||
| Position: | *Named parameter* | | ||
| Required: | Yes | | ||
| Default value: | *None* | | ||
|
||
___ | ||
|
||
### `paramD` Parameter | ||
|
||
| | | | ||
| -------------- | ----------------- | | ||
| Name: | paramD | | ||
| Position: | *Named parameter* | | ||
| Required: | Yes | | ||
| Default value: | *None* | | ||
|
||
___ | ||
|
||
### `B` Parameter | ||
|
||
| | | | ||
| -------------- | ------------------------- | | ||
| Name: | B | | ||
| Position: | *None (Switch Parameter)* | | ||
| Required: | *No (Switch Parameter)* | | ||
| Default value: | `false` | | ||
|
||
___ | ||
|
||
### `A` Parameter | ||
|
||
| | | | ||
| -------------- | ------------------------- | | ||
| Name: | A | | ||
| Position: | *None (Switch Parameter)* | | ||
| Required: | *No (Switch Parameter)* | | ||
| Default value: | `false` | | ||
|
||
___ | ||
|
||
*Documentation generated by [MdDocs](https://github.com/ap0llo/mddocs)* |
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