Checking forceString parameter now less strict

This commit is contained in:
Mike Farah 2015-10-02 08:50:08 +10:00
parent 0cb8a47ccb
commit 58bdb3ed21

View File

@ -66,7 +66,8 @@ func writeProperty(c *cli.Context) {
} }
var forceString bool var forceString bool
if len(c.Args()) == 4 { var argumentLength = len(c.Args())
if argumentLength >= 4 && c.Args()[argumentLength-1] == "forceString" {
forceString = true forceString = true
} }