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
Hello. 👋 I was wondering if it'd be possible to add optional positional parameter support since it's awkward to use a control parameter (i.e. actual || fallback) in the body of an #on method when an optional positional parameter could be provided via the block arguments.
As per the official option parser documentation, the --demo_a implementation is the recommended way to solve this problem but I'd really like to support the --demo_b implementation since it would clean up the code and is more intuitive/idiomatic.
Activity
Respect default values in block parameters
Respect default values in block parameters
[ruby/optparse] Respect default values in block parameters
Respect default values in block parameters
[ruby/optparse] Respect default values in block parameters
Updated to Option Parser 0.5.0