add diagnostic and a real command line parser to manifest updater