@Command("cmd")
// and then we retrieve it with `command.commandName, it returns
cmd
but when we do the same thing with arguments
@Command("cmd :slug")
and then we retrieve it with `command.commandName, it returns
cmd :slug
in runtime command name is cmd. There should be solution to get command name and arguments separately
Suggested solution: return command name with command.commandName but make another function command.commandArguments which returns the arguments in array format.
this is example of command
when we define command name without slug like
but when we do the same thing with arguments
in runtime command name is
cmd
. There should be solution to get command name and arguments separatelySuggested solution: return command name with
command.commandName
but make another functioncommand.commandArguments
which returns the arguments in array format.