-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed
Description
Best way I found to do long-only options in commander is this hack:
program.option(", --some-option <value>", ...)
The hack here is leading with a comma, so the Option object properly splits and sees --some-option is a long flag. Without the leading ", " it will see --some-option as the short flag and as the long one - kind of stuck my brain for a minute when I saw it first ;)
Thoughts?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels