Make small parseopts refactoring

* Use cmd_name instead of args_else[0] for clarity and consistency with
other parseopts code
* Move cmd_args assignment to place where it used