Refactor command type signatures.

Instead of giving an entire list of strings to the command functions, only
give the required amount of arguments.