pacak / bpaf

Command line parser with applicative interface
Apache License 2.0
340 stars 17 forks source link

Make split_os_argument aware of short flag and argument names? #269

Open pacak opened 1 year ago

pacak commented 1 year ago

Currently it splits things mechanically looking at symbols only without handling possible values. os string -oa=b can be parsed as either -o a=b or -o -a=b depending of type of -o, former for short argument and later for short flag and -a being an argument. We already doing the right thing for -oab inside args::disambiguate_short