davetron5000 / optparse-plus

Start your command line scripts off right in Ruby
http://davetron5000.github.com/optparse-plus
Apache License 2.0
521 stars 54 forks source link

help option not shown among the default options #51

Closed sparez closed 11 years ago

sparez commented 12 years ago

I have noticed that the help option (-h or --help) is valid by default. However it is not listed in the list of options when showing the help. Is it so by design or for the sake of completeness it would be better to list that too ? I know, even if, that's really low priority. :)

kudos for such nice library ! loving the cucumber integration and great iPad tutorial.

davetron5000 commented 12 years ago

Yeah, I never noticed that, because I'm so used to assuming it works. I agree it should be listed (and that it's low priority :). It shouldn't be too hard to add tho, next time I'm doing something else…

Dave

On Monday, August 27, 2012 at 6:50 PM, Reza Marvan Spagnolo wrote:

I have noticed that the help option (-h or --help) is valid by default. However it is not listed in the list of options when showing the help. Is it so by design or for the sake of completeness it would be better to list that too ? I know, even if, that's really low priority. :)

— Reply to this email directly or view it on GitHub (https://github.com/davetron5000/methadone/issues/51).

sparez commented 12 years ago

Dave, thanks for your fast reply!

May I try to give it a shot myself ? Would send you a pull request when done in case you're happy with that.

davetron5000 commented 12 years ago

Sure, go for it! :)

I think there's a few cucumber tests for a generated app where you could use them to drive the feature.

Dave

On Tue, Aug 28, 2012 at 4:14 AM, Reza Marvan Spagnolo < notifications@github.com> wrote:

Dave, thanks for your fast reply!

May I try to give it a shot myself ? Would send you a pull request when done in case you're happy with that.

— Reply to this email directly or view it on GitHubhttps://github.com/davetron5000/methadone/issues/51#issuecomment-8082488.

davetron5000 commented 11 years ago

This should now be in 1.2.3