injekt/slop — pull request #76 by kyrylo (2012-08-18 14:33:52+00:00)
Title: Improve Slop commands

In this pull request:

##### Add `Slop::Commands#present?` method

Extend current Commands by adding a convenient method, which helps to use such code as:

```ruby
if cmds.present?(:install)
run_installer
else
# Do something else.
end
```

Example:

```ruby
cmds.parse %w( foo )
cmds.present?(:foo) #=> true
cmds.present?(:bar) #=> false
```

##### Implement basic support for command arguments

Example:

```ruby
cmds.parse %w( install geronimo banzai --outdir dir )
cmds.arguments #=> ["geronimo", "banzai"]
```