Method: Cmdline::CmdLine#command_name

Defined in:
lib/cmdline.rb

#command_nameObject

Raises:

  • (RuntimeError)


376
377
378
379
# File 'lib/cmdline.rb', line 376

def command_name
  raise(RuntimeError, "no command defined") if self.commands.empty?
  self.command
end