getopt: add "setopt" for logical completeness and debugging