Added check on parameters without leading dash

Change-Id: Ia77c4e61eebfa078d1c183a0f4b485cb0b2965c2
Closes-Bug: #1326964