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

Add aliases option #226

Merged
merged 4 commits into from
Mar 20, 2023
Merged

Conversation

tommy-mitchell
Copy link
Contributor

@tommy-mitchell tommy-mitchell commented Mar 19, 2023

Adds flag.aliases as specified in #109:

flags: {
	unicorn: {
		type: 'string',
		shortFlag: 'u',
		aliases: ['unicorns']
	}
}
//=> Accepts `--unicorn`, `--unicorns`, or `-u`

@sindresorhus sindresorhus merged commit 901b9fc into sindresorhus:main Mar 20, 2023
@sindresorhus
Copy link
Owner

@tommy-mitchell Do you plan any more changes? If not, I will do a new version.

@tommy-mitchell
Copy link
Contributor Author

I was also working on a .choices option.

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.

2 participants