visionmedia/commander — pull request #49 by stephenmckinney (2012-12-23 19:06:58+00:00)
Title: Fixes default_command

## default_command fix

Fixes execution of `default_command` when a command is explicitly passed that does not exist.

#### To replicate

Run the new spec with old code.

#### Example

```ruby
program :name, 'foo'
default_command :hello
command(:hello){ puts 'Hello!' }
```

#### Expected behavior

`$ foo`
Hello!
`$ foo --trace`
Hello!
`$ foo bye`
*ERROR*

#### Actual behavior

`$ foo`
Hello!
`$ foo --trace`
Hello!
`$ foo bye`
Hello!

## RSpec options

Specs in Commander *must* be run in order. Adding this option will override any local settings by users running the specs.

From RSpec docs:
> Configuration options are loaded from ~/.rspec, .rspec, .rspec-local,
command line switches, and the SPEC_OPTS environment variable
(listed in lowest to highest precedence; for example, an option in
~/.rspec can be overridden by an option in .rspec-local).