Module: Acclaim::Command::DSL::Root
- Included in:
- Acclaim::Command::DSL
- Defined in:
- lib/acclaim/command/dsl/root.rb
Overview
Methods that only work with root commands.
Instance Method Summary collapse
-
#help(*arguments, &block) ⇒ Object
Adds help subcommand and options to this command.
-
#version(*arguments, &block) ⇒ Object
Adds version subcommand and options to this command.
Instance Method Details
#help(*arguments, &block) ⇒ Object
Adds help subcommand and options to this command.
21 22 23 |
# File 'lib/acclaim/command/dsl/root.rb', line 21 def help(*arguments, &block) Help.create root, *arguments, &block end |
#version(*arguments, &block) ⇒ Object
Adds version subcommand and options to this command.
28 29 30 |
# File 'lib/acclaim/command/dsl/root.rb', line 28 def version(*arguments, &block) Version.create root, *arguments, &block end |