This is an update for Yet Another Command Line Parser for Slack/Hubot.
Since the last post, a few minor updates have been made:
- Added a validation set for a required parameter
product-name action {required-param-name=option1|option2|option3}
- Added a validation set for an optional parameter with a default value
product-name action {required-param-name=option1|option2:option2}
- Made the parameter check Case Insensitive
- Added ability to take in an empty string as an input value (“”)
- Added parsing that can handle multiple spaces between parameters
- Added parameters passed in format parameter-name=value format
Here’s the updated version:
0 comments:
Post a Comment