Skip to content

Commit

Permalink
Document support for subcommand aliases.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdub committed Mar 10, 2014
1 parent fbc7d41 commit 2b64126
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Expand Up @@ -316,6 +316,18 @@ class InitCommand < Clamp::Command
end
```

Like options, subcommands may have aliases:

```ruby
Clamp do

subcommand ["initialize", "init"], "Initialize the repository" do
# ...
end

end
```

### Default subcommand

You can set a default subcommand, at the class level, as follows:
Expand Down

0 comments on commit 2b64126

Please sign in to comment.