Module: CLI
- Defined in:
- lib/cli.rb,
lib/cli/app.rb,
lib/cli/version.rb
Overview
A CLI app framework
Defined Under Namespace
Constant Summary collapse
- VERSION =
"0.3.0"
Class Method Summary collapse
-
.app(&block) ⇒ Object
Create a new App object with $0 as the binary name and runs it with ARGV.
Class Method Details
.app(&block) ⇒ Object
Create a new App object with $0 as the binary name and runs it with ARGV
6 7 8 9 |
# File 'lib/cli.rb', line 6 def self.app(&block) @app = App.new($0, &block) @app.run!(ARGV) end |