commander-rb / commander

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

Fix: Global option values ignored when args provided #88

Closed orien closed 4 years ago

orien commented 4 years ago

Context

As detailed in #86, global options are ignored when command specific options or arguments are provided.

Proposed Solution

Separate the global options from the command specific options. This prevents the global options from being cleared when the command specific options are parsed.

Fixes #86.

ggilder commented 4 years ago

Just released in v4.5.1. Thanks for fixing this!