Skip to content

Command names cannot contain spaces

Created by: Bilge

I'd like to query why command names cannot contain spaces. Currently I receive an error similar to the following:

InvalidArgumentException: Command name has to be an alphanumeric string not starting with dash, found 'import apps'

I want a command called import apps and another called import reviews. The thought occurs I could just create an import command with an operand that accepts either apps or reviews. The reason I cannot do this, however, is because each of those commands accept a different set of options. That is, since the commands do not share the same options they cannot be combined.

Is there any technical reason at all why a command could not contain a space character? If so, could such a restriction be lifted without too much effort?