hash-object: cleanup handling of command line options