From 16f0bb96dbb51e17a58a112da1a387c76ab73819 Mon Sep 17 00:00:00 2001 From: John Date: Wed, 8 Jan 2020 23:06:01 +0800 Subject: [PATCH] improve strict parsing feature for gcmd --- os/gcmd/gcmd_parser.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/os/gcmd/gcmd_parser.go b/os/gcmd/gcmd_parser.go index 0ceba41c2..3858ecb94 100644 --- a/os/gcmd/gcmd_parser.go +++ b/os/gcmd/gcmd_parser.go @@ -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 }