Method: CLI.command_name

Defined in:
lib/clir/CLI.mod.rb

.command_nameObject

Command name

Don’t confuse with ‘main command’ which is the very first argument in command line



95
96
97
98
99
# File 'lib/clir/CLI.mod.rb', line 95

def command_name
  @command_name ||= begin
    File.basename($PROGRAM_NAME,File.extname($PROGRAM_NAME))
  end
end