method

command_name

rails latest stable - Class: Rails::Command::Base
command_name()
public

Return command name without namespaces.

Rails::Command::TestCommand.command_name # => 'test'