-
Notifications
You must be signed in to change notification settings - Fork 724
Render short option with arg. #9043
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ulysses4ever
merged 14 commits into
haskell:master
from
cabalism:render-short-option-with-arg
Jul 14, 2023
Merged
Changes from all commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
fd21442
Render short required and optional options with abbreviated ARG.
philderbeast 82404ca
Like for long options use [_] to show these as optional.
philderbeast 8f3d867
Don't abbreviate required arguments and say why.
philderbeast b937e41
Satisfy fourmolu.
philderbeast e29012a
Don't abbreviate the option argument.
philderbeast d1ef7d7
Vary display of short option if it has a default value.
philderbeast ebbcf74
Add haddocks to fmtShort and fmtLong.
philderbeast 4b32014
Change the default value from Maybe String to String.
philderbeast 82e7afb
Add a changelog entry.
philderbeast bf70d7e
Update command docs to match command --help
philderbeast 0f428e5
Update project docs to match --help
philderbeast 5aea5dd
Update set up commands to match --help
philderbeast f01a604
Shorten the diff in the change log entry
philderbeast aaa058a
References are case-sensitive
philderbeast File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 @@ | ||
| synopsis: Also render short options with arguments | ||
| packages: cabal-install | ||
| prs: #9043 | ||
| issues: #8785 | ||
|
|
||
| description: { | ||
|
|
||
| Show how arguments are used with both short and long forms of options: | ||
|
|
||
| ```diff | ||
| < -v, --verbose[=n] Control verbosity (n is 0--3, default | ||
| > -v[n], --verbose[=n] Control verbosity (n is 0--3, default | ||
| < -w, --with-compiler=PATH give the path to a particular compiler | ||
| > -w PATH or -wPATH, --with-compiler=PATH | ||
| ``` | ||
|
|
||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.