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
One such case would be a "log" option that couldtake a default value (output.log) if enabled without an argument, but could have that value overridden
examples:
currently all options in Optimist are either flags (taking no args) or are of a type that take args. Supporting this feature may be difficult w/ the current codebase especially when taking into account how defaults should be handled, if no- args should be handled, what to do with multi and/or array types.
The text was updated successfully, but these errors were encountered:
Would be nice to support an
opt
that can be given with/without arguments. Without arguments (or defaults), it would take on flag-like behavior.One such case would be a "log" option that couldtake a default value (output.log) if enabled without an argument, but could have that value overridden
examples:
currently all options in
Optimist
are either flags (taking no args) or are of a type that take args. Supporting this feature may be difficult w/ the current codebase especially when taking into account how defaults should be handled, ifno-
args should be handled, what to do with multi and/or array types.The text was updated successfully, but these errors were encountered: