injekt/slop — Issue #56: default option values are overridden by successive options
Author: banister
Created: 2012-02-07 14:30:11+00:00
State: open

I have the following options defined for a `show-stack` command:

```ruby
opt.on :v, :verbose, "Include extra information."
opt.on :c, :current, "Display N frames either side of current frame (default to 5).", :optional => true, :as => Integer, :default => 5
```

When I invoke my command as follows:

```ruby
show-stack -c -v
```

The `5` default for the `c` option is nulled out, as if i had passed in `-c 0`

However if i reverse the order of option passing:

```ruby
show-stack -v -c
```

Then the default of `5` works again, and I see the expected result.