Class: Yacli::Cli
- Inherits:
-
Object
- Object
- Yacli::Cli
- Defined in:
- lib/yacli/cli.rb
Class Method Summary collapse
Class Method Details
.start ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 |
# File 'lib/yacli/cli.rb', line 3 def self.start require 'yacli/base' b = Base.new = Base. do opt :cmd, "Number of limbs", :default => 'uname', :type => :string end b.log("running CLI with options: #{.inspect}") result = b.cli() b.log("result: #{result.inspect}") #b.log("I'm logging error", :error) end |