Some utility functions.

It might be better to print the command as a list rather than stringifying it. It shouldn't make a difference, but for debugging seeing the exact input can be helpful (e.g. it lets you see how the parsing happened)