mirror of
https://gitee.com/johng/gf
synced 2026-06-06 16:21:40 +08:00
improve strict parsing feature for gcmd
This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user