Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

unlucky 13 character config name

#97

13-character config names cause an unusual 'can't convert nil into String' error, evidently caused within OptParse.


# Sample::manifest run checks
class Sample < Tap::Task
  config :abcdefghijklm, ""
end

  % tap run -- sample --help

Will raise this error. Adding a comment after config is a workaround. I think this also has to do with the awful presentation of long config names by OptParse.

Reported by bahuvrihi · September 3rd, 2008 @ 11:17 PM

State: resolved
Milestone: none
Assigned to: bahuvrihi bahuvrihi

Activity

  1. bahuvrihi
    bahuvrihi
    • State changed from new to resolved
    • Assigned user set to bahuvrihi

    (from [fa6099e20744a49ed5cfcd743cd9f87379e0445b]) Added patch to OptParse option formatting, to handle the unlucky 13 and long argument issues. [#97 unlucky 13 character config name state:resolved responsible:bahuvrihi] http://github.com/bahuvrihi/tap/...

    September 3rd, 2008 @ 11:53 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.