Skip to content

Consider -? as an alias to -h#1552

Merged
patriksvensson merged 1 commit into
spectreconsole:mainfrom
kzu:questionmark
May 29, 2024
Merged

Consider -? as an alias to -h#1552
patriksvensson merged 1 commit into
spectreconsole:mainfrom
kzu:questionmark

Conversation

@kzu

@kzu kzu commented May 17, 2024

Copy link
Copy Markdown
Contributor

Given that it's quite a common switch and extremely unlikely to be already in use for something else, we can just consider it to be the same as having entered -h as an arg.

Fixes #1547

Comment thread test/Spectre.Console.Cli.Tests/Unit/CommandAppTests.Help.cs Outdated
Given that it's quite a common switch and extremely unlikely to be already in use for something else, we can just consider it to be the same as having entered `-h` as an arg.

This adds the `?` as a valid option character name.

Fixes #1547
@kzu

kzu commented May 29, 2024

Copy link
Copy Markdown
Contributor Author

Missed that change @patriksvensson

@patriksvensson patriksvensson left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@patriksvensson patriksvensson merged commit 5c87d7f into spectreconsole:main May 29, 2024
@patriksvensson

Copy link
Copy Markdown
Contributor

Merged! Thank you for your contribution. Much appreciated! 👍

@kzu kzu deleted the questionmark branch May 30, 2024 03:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add '-?' as an additional alias for '-h' and '--help', just like 'dotnet -?'

2 participants