Default to function name if none specified.

Supports both @command and @command().
Merge pull request #11 from ganjianwei/default-fn-name

Default to function name if none specified.