Rename `alias` option to `shortFlag`
See original GitHub issueI never liked the alias
wording, which was inherited from minimist
. I think it would be better to have a more explicit and semantic name called shortFlag
.
We could then also add a aliases
option where users can specify actual aliases and not just limited to one:
{
flags: {
unicorn: {
type: 'string',
default: 'love',
shortFlag: 'u',
aliases: [
'--rainbow',
'-r'
]
}
}
}
Could use some feedback on this proposal.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:6
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Issuehunt
Rename `alias` option to `shortFlag` #109. sindresorhus posted onGitHub. I never liked the alias wording, which was inherited from minimist .
Read more >Rename aliases - Documentation - Devart
In the SQL code editor, place the cursor over the alias you want to rename and use one of the following options: Right-click...
Read more >meow - Bountysource
I think it would be better to have a more explicit and semantic name called shortFlag . We could then also add a...
Read more >Commands - fish shell
alias alias [OPTIONS] NAME DEFINITION alias [OPTIONS] NAME=DEFINITION ... A / if the short flag can be used by someone invoking your command...
Read more >Create Aliases to Rename Members in the View - Tableau Help
In this article. Create an alias; When the Alias option is not available; Measures can't be re-aliased; Published data sources; Bulk re-aliasing. Contents....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@LitoMore It’s not.
shortFlag
is there to semantically indicate what’s the short version of the flag.aliases
is just any kind of alias long/short/medium/thin/thick/unicorny. This distinction will be especially important when we start generating the help output.@BendingBender That would be a big breaking change and IMHO not for the better. I also want to make a clear distinction between an alias and a short-flag.