Function of parsing arguments in command.