mdub / clamp

a Ruby command-line application framework

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Options only work with longopts.

bluerise opened this issue · comments

As soon as you use something like option "-d", it throws a trace, because the infer_attribute_name regex only matches for longopts.

To work around this one can manually specify an :attribute_name. Would be nice if that was either fixed or mentioned in the README.

Yes. Good point. Thanks.

I added a warning, with a more helpful error message, in daecae9.