Basically I have defined all the options in const optionDefinations say = [ { name: 'user', alias: 'u', type: String }];
But when I give the option as -user instead of --user in terminal. It is throwing an exception as ALREADY_SET If a user sets a singular, non-multiple option more than once. The err.optionName property contains the option name that has already been set,
I tried parsing using stopAtFirstUnknown and partial true it didn't work.Here is the github link of the documentation (https://github.com/75lb/command-line-args/blob/master/doc/API.md)
Can i give an echo message "as error" instead of the exception?