[−][src]Attribute Macro commander_macros::command
#[command]
Define command.
Format
#[command(sub_cmd $(<rs>|[os]|<rm...>|[om...]),* , desc)]
, explain:
sub_name
: the name of sub-command you defined, it should be same as the name of command processing function$(<rs>|[os]|<rm...>|[om...]),*
: arguments list, divided by comma. Only four types of arguments:,[OptionalSingle], ,[OptionalMultiple] desc
: description of this sub-command, it's using for display help information.
Note
#[command]
should be placed after all #[option]