From 8442bab164641f433945c5ace39b06eb3eca7fa0 Mon Sep 17 00:00:00 2001 From: John Guo Date: Wed, 24 Nov 2021 22:15:23 +0800 Subject: [PATCH] improve package gcmd --- os/gcmd/gcmd_command_run.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/os/gcmd/gcmd_command_run.go b/os/gcmd/gcmd_command_run.go index df0429eed..4236387d5 100644 --- a/os/gcmd/gcmd_command_run.go +++ b/os/gcmd/gcmd_command_run.go @@ -85,10 +85,6 @@ func (c *Command) doRun(ctx context.Context, parser *Parser) (value interface{}, // reParse re-parses the arguments using option configuration of current command. func (c *Command) reParse(ctx context.Context, parser *Parser) (*Parser, error) { - // It seems just has built-in help option, it so does nothing. - if len(c.Options) == 1 { - return parser, nil - } var ( optionKey string supportedOptions = make(map[string]bool)