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
Let's say my CLI tool has an old option that's no longer valid:
@OptionpublicvarsendToCzechslovakia=false
Since Czechoslovakia doesn't exist anymore, I've replace it with sendToEuropeanUnion, and I want to inform folks still using it to change their command-line incantations. Wouldn't it be nice if I could write:
This sounds handy, but I don't think there's enough of a consensus around how to display those kinds of messages to implement it as a library feature. You can implement that yourself by:
providing both flags
using validate() to print a message if sendToCzechslovakia is true
using a computed property to make is easy to access sendToEuropeanUnion || sendToCzechslovakia within your command
Let's say my CLI tool has an old option that's no longer valid:
Since Czechoslovakia doesn't exist anymore, I've replace it with
sendToEuropeanUnion
, and I want to inform folks still using it to change their command-line incantations. Wouldn't it be nice if I could write:And have it automatically be hidden and emit some sort of diagnostic message to
stderr
?The text was updated successfully, but these errors were encountered: