Module: ATM::CLI
- Defined in:
- lib/atm/cli.rb
Class Method Summary collapse
Class Method Details
.run(basedir, default = nil) ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'lib/atm/cli.rb', line 3 def CLI.run(basedir, default = nil) begin command = ARGV.shift || default throw LoadError unless /^\w*$/ =~ command require basedir + '/' + command rescue LoadError, ArgumentError require basedir + '/usage' end end |