[PATCH 3/3] reg: Abort 'query' operation when parsing command-line arguments that are not switches