Module: Specimen::CLI
- Defined in:
- lib/specimen/cli.rb,
lib/specimen/cli/default_command.rb
Defined Under Namespace
Classes: DefaultCommand
Class Method Summary collapse
Class Method Details
.show_version ⇒ Object
20 21 22 |
# File 'lib/specimen/cli.rb', line 20 def show_version puts(Specimen::VERSION::STRING) end |
.start!(args = ARGV) ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/specimen/cli.rb', line 9 def start!(args = ARGV) command = args.shift case command when '--version', '-v' show_version else DefaultCommand.start(ARGV.dup) end end |