Skip to content
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

[ts-command-line] Allow more than one character for parameterShortName #5070

Open
douglasg14b opened this issue Jan 9, 2025 · 0 comments
Open

Comments

@douglasg14b
Copy link

douglasg14b commented Jan 9, 2025

Summary

For CLIs with many parameters, 2-letter short-name parameters are often desirable to maintain semantics. Forcing them to only be a single letter forces seemingly confusing short params or no short params at all

For exmaple:

--source-account 
    -sa
--target-account 
    -ta
--source-region 
    -sr
--target-region 
    -tr

Related to the following error:

The parameter short name must be a dash followed by a single upper-case or lower-case letter (e.g. "-a")

Standard questions

Please answer these questions to help us investigate your issue more quickly:

Question Answer
Package name: @rushstack/ts-command-line
Package version? 4.23.2
Operating system? N/A
Would you consider contributing a PR? Yes
Node.js version (node -v)? N/A
@github-project-automation github-project-automation bot moved this to Needs triage in Bug Triage Jan 9, 2025
@douglasg14b douglasg14b changed the title [ts-command-line] Allow more than one character for parameterShortName [ts-command-line] Allow more than one character for parameterShortName Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Needs triage
Development

No branches or pull requests

1 participant