config: allow bools and ints as well
config: move cmdline validation into CmdConfig class