Move the arg parser to the _api module