Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Methadone::Main#description sometimes fails #65

Closed
ruafozy opened this issue May 4, 2013 · 0 comments
Closed

Methadone::Main#description sometimes fails #65

ruafozy opened this issue May 4, 2013 · 0 comments

Comments

@ruafozy
Copy link

ruafozy commented May 4, 2013

Given

Suppose I give these commands:

cd /tmp
methadone --license mit rabbit
cd rabbit
vi bin/rabbit

When I edit the executable, what I do is insert a call to description,
just before the call to "main".

When

I execute this command:

ruby -I lib bin/rabbit --help 

Then

I get exactly this output:

/usr/local/ruby/2.0.0-p0/lib/ruby/gems/2.0.0/gems/methadone-1.2.6/lib/methadone/main.rb:250:in `description': undefined method `description' for nil:NilClass (NoMethodError)
        from bin/rabbit:11:in `<class:App>'
        from bin/rabbit:7:in `<main>'

Tentative conclusion

description doesn't work unless one calls some other method
of Methadone::Main first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant