Add CLI helper.

Change-Id: Ia99a29bf65e858dca61bb42613f6067b3ea2ec60
Add ambigious flag detection to CLI Helper.

Change-Id: I1d6e5b51a533ec3b5d0a303cb5addd9b97c16120
Fix script filename detection bug.

Change-Id: I4c1484556a6a6a4f34bac5fe38b9c94ae5e20fa4