-
Notifications
You must be signed in to change notification settings - Fork 71
Support short_name COLON value #284
Copy link
Copy link
Open
Description
I think Slop should support '-v:8' as well as '-v=8' and '-v 8'
suggesting this change in parser.rb
# support `foo=bar`
orig_flag = flag.dup
# if match = flag.match(/([^=]+)=(.*)/) # OLD
if match = flag.match(/([^=:]+)[=:](.*)/) # NEW
flag, arg = match.captures
endWill make --president:Trump work as-well
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels