add basic support for generic options ("-loglevel" flag)