75lb / command-line-args

A mature, feature-complete library to parse command-line options.
MIT License
679 stars 107 forks source link

Aliases should be nullable #107

Closed Androz2091 closed 4 years ago

Androz2091 commented 4 years ago

When I don't add the alias property to an Argument object:

const optionDefinitions = [
    { name: "checkfor", type: String, multiple: true }
];

like this, it throws the following error: INVALID_DEFINITIONS: Invalid option definition: an alias must be a single character It shouldn't, no? We shouldn't have to specify an alias

75lb commented 4 years ago

An alias is optional - something else is causing this issue, please double-check all definitions.. if you want some help, post a full code sample which I can run..

75lb commented 4 years ago

Closing as stale.