improve strict parsing feature for gcmd

This commit is contained in:
John
2020-01-08 23:06:01 +08:00
parent 33a899d32e
commit 16f0bb96db

View File

@ -136,9 +136,6 @@ func (p *Parser) parseOption(argument string) string {
}
func (p *Parser) isOptionValid(name string) bool {
if !p.strict {
return true
}
_, ok := p.supportedOptions[name]
return ok
}