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

Options for displaying version info #90

Closed lebogan closed 9 years ago

lebogan commented 9 years ago

Is it possible to change the code so the version only shows when specifically called: my-app --version and not show up when --help is used?

Thanks for this great gem. Yes, I did buy the book at version 2:-)

davetron5000 commented 9 years ago

Have you tried

version "1.2.3", compact: true

That should do what you want. Let me know if not.

And thanks for buying the book :)

davetron5000 commented 9 years ago

Re-open if you were looking for something else. If you have sample desired output, that'll help. Shouldn't be hard to provide alternates.