Add get option command (bug #2868, thanks junky!)