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
Can I define option as required?
I want to create ffmpeg-like cli experience and want person to always include -i option with a value. I can manually detect that -i wasn't given, but I want commander to do it for me.
Is it possible?
If yes - then I think README and API Docs need some examples, if not - I'd like make this a feature request.
Example
program.option("-i <path>","source file")
This fails on: app -i
but continues on: app
The text was updated successfully, but these errors were encountered:
Can I define option as required?
I want to create ffmpeg-like cli experience and want person to always include
-i
option with a value. I can manually detect that-i
wasn't given, but I want commander to do it for me.Is it possible?
If yes - then I think README and API Docs need some examples, if not - I'd like make this a feature request.
Example
This fails on:
app -i
but continues on:
app
The text was updated successfully, but these errors were encountered: