Integrated cmd parser into existing examples.