Default command name

Implement @leavengood's method for getting the default name for a command.

Closes #335.