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

GLI::DefaultHelpCommand.skips_pre=false #124

Closed
atonevski opened this issue Jan 22, 2013 · 2 comments
Closed

GLI::DefaultHelpCommand.skips_pre=false #124

atonevski opened this issue Jan 22, 2013 · 2 comments

Comments

@atonevski
Copy link

I want the help command to run the pre block. I put
GLI::DefaultHelpCommand.skips_pre=false
just before
exit run(ARGV)

and I get:

uninitialized constant GLI::DefaultHelpCommand (NameError)

Any hints?

@davetron5000
Copy link
Owner

I think this feature didn't make it to GLI2 :( I think it would be easy enough to port. I'll leave this open as a feature request and see what I can do. I can't think of a good workaround without some monkey-patching…

@davetron5000
Copy link
Owner

This should be fixed in 2.5.4. You'll need to do something like this:

GLI::Commands::Help.skips_pre    = false
# and/or
GLI::Commands::Help.skips_post   = false
# and/or
GLI::Commands::Help.skips_around = false

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

No branches or pull requests

2 participants