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

Improve ri --help and --version options handling #448

Merged
merged 2 commits into from
Apr 19, 2017
Merged

Conversation

stomar
Copy link
Contributor

@stomar stomar commented Apr 18, 2017

  • Fix ri -h, which does not work currently.

    Instead of showing the help banner, ri apparently ignores the `-h' option (without error message for an unknown option) and starts in interactive mode.
    (Also reported at https://bugs.ruby-lang.org/issues/10838.)

  • Make --help and --version options appear in the --help output

  • Various small improvements of the ri --help output

stomar added 2 commits April 18, 2017 21:53
Explicitly handle ri's --help and --version options instead of
relying on OptionParser's default behavior. This makes both options
appear in the ri --help text.

This also fixes `ri -h' which did not work as expected: instead of
displaying the help text, ri entered the interactive mode, apparently
ignoring the option.
@drbrain
Copy link
Member

drbrain commented Apr 18, 2017

My name is Eric Hodel and I approve this pull request (pending CI).

@hsbt hsbt merged commit 210ab2c into ruby:master Apr 19, 2017
@stomar stomar deleted the ri-help branch April 19, 2017 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants