Class: DctlApp

Inherits:
Object
  • Object
show all
Defined in:
lib/dctl.rb

Instance Method Summary collapse

Instance Method Details

#runObject



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