cleaned up the arg parsing for !api commands