Class: Arisu::CLI

Inherits:
Dotenv::CLI
  • Object
show all
Defined in:
lib/arisu/cli.rb

Instance Method Summary collapse

Instance Method Details

#runObject



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/arisu/cli.rb', line 8

def run
  if @overload
    Arisu.overload!(*@filenames)
  else
    Arisu.load!(*@filenames)
  end
rescue Errno::ENOENT => e
  abort e.message
else
  exec(*@argv) unless @argv.empty?
end