Default to function name if none specified.

Supports both @command and @command().