Extracts the command arguments. Parses it to an object that both support ordering and key value pairs.