Class: DctlApp
- Inherits:
-
Object
- Object
- DctlApp
- Defined in:
- lib/dctl.rb
Instance Method Summary collapse
Instance Method Details
#run ⇒ Object
6 7 8 9 10 11 12 13 14 |
# File 'lib/dctl.rb', line 6 def run begin Dctl::CommandLineParser.parse!(File.basename($0, '.*'), ARGV) rescue puts $!.to_s.gsub(/:\W*$/, '.') puts 'Use -h or --help for usage.' exit 1 end end |