git config: reorganize to use parseopt