Usually you'd use string functions to split the input string at spaces. The first part of the string before the first space is a command, and then the substrings after spaces are arguments.
↧