You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Commander could check for more usage errors. These are probably a win for new programs and people new to Commander, but may mean more work when upgrading Commander in an old program (to fix problems that had not been noticed previously).
Have a look and upvote 👍 errors you wish Commander would check for, and downvote 👎 errors that would get in the way of how you are using Commander or you wouldn't want to fix when upgrading.
program
.option('-en', '--environment') // oops, short option should be a single character
.option('-h, -?, --help'); // oops, short or long or both, but not more than one of each
Activity
shadowspawn commentedon Aug 23, 2023
program.parse()when an action handler or hook is async . Should be callingprogram.parseAsync()if any action handler or hook is async.Note: this error can not be detected except during parsing, so may not show up on all calls.
shadowspawn commentedon Aug 23, 2023
shadowspawn commentedon Aug 23, 2023
shadowspawn commentedon Aug 23, 2023
.parse()more than once. Parse leaves behind state, so the intention is make a new program for every parse.shadowspawn commentedon Aug 23, 2023
.parse()on a subcommand.This isn't technically wrong, but probably a mistake.
shadowspawn commentedon Aug 24, 2023
shadowspawn commentedon Jan 20, 2024
Not much feedback on this. Numbers at 21 Jan 2024: 2 3 3 1 1 1
Adding check for conflicting commands (#2059) and options (#2055) in Command v12.