common-cli: arguments parsing improvement

Also added this test in https://github.com/caskdata/common/pull/6