cmdline: add support for command-line flags that contain variables

MultiPart: 2/3

Change-Id: I220e735a751ee8f34480870863c71621526173ae
6 files changed