Class: Pytty::Daemon::Cli::RootCommand

Inherits:
Clamp::Command
  • Object
show all
Defined in:
lib/pytty/daemon/cli/root_command.rb

Class Method Summary collapse

Class Method Details

.runObject



17
18
19
20
21
22
23
24
25
26
# File 'lib/pytty/daemon/cli/root_command.rb', line 17

def self.run
  if ARGV.size == 0
    ServeCommand.run
  else
    super
  end
rescue StandardError => exc
  warn exc.message
  warn exc.backtrace.join("\n")
end