Skip to content

Rename alias option to shortFlag #109

@sindresorhus

Description

@sindresorhus

I 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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions