Get config info via function, set custom config on cmdline, fixed optarg stuff.