Merge pull request #124 from Morganamilo/fix#122

Filter out yay command line options
This commit is contained in:
J Guerreiro 2018-01-31 17:04:31 +00:00 committed by GitHub
commit 3f09df3703
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -447,6 +447,10 @@ func (parser *arguments) parseShortOption(arg string, param string) (usedNext bo
arg = arg[1:]
if isYayParam(arg) {
return
}
for k, _char := range arg {
char := string(_char)
@ -481,6 +485,10 @@ func (parser *arguments) parseLongOption(arg string, param string) (usedNext boo
arg = arg[2:]
if isYayParam(arg) {
return
}
if hasParam(arg) {
err = parser.addParam(arg, param)
usedNext = true