nk412 / optparse

Simple command line arguments parser for BASH
MIT License
158 stars 32 forks source link

can this support more than 26 options? #20

Open bitsofinfo opened 7 years ago

bitsofinfo commented 7 years ago

can this support more than 26 options? I.E. the limit of possibilities for the -short option, does that take anything other than alphas?

bitsofinfo commented 7 years ago

Looks like casing doubles that, plus you can use numbers, i.e.

short=P
short=p
short=1
short=9
nk412 commented 7 years ago

I hadn't considered the case when you would run out of labels for the short flag. The short flag option can be made optional, would that work?