[pipeline_demo] parse the CLI properly, w/ flags