commander-rb / commander

The complete solution for Ruby command-line executables
MIT License
823 stars 74 forks source link

Cannot have switches that start with 'version' #29

Closed mariusmarais closed 8 years ago

mariusmarais commented 8 years ago

Or other global long option names.

runner.rb:340 is the culprit as it essentially does a starts_with comparison.

As a test case, create an option named versionCode, which when specified on the command line, gets deleted after remove_global_options.