From 1b8246c28f6339620656adea028df304b038e46f Mon Sep 17 00:00:00 2001 From: sophia Date: Mon, 16 May 2022 14:31:23 -0500 Subject: [PATCH] Set base command flag data --- internal/cli/base.go | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/internal/cli/base.go b/internal/cli/base.go index e8a77d160..49aa47257 100644 --- a/internal/cli/base.go +++ b/internal/cli/base.go @@ -488,8 +488,22 @@ func (c *baseCommand) Parse( continue } c.flagData[f] = pf.Value() + // Set the flag values + switch f.LongName { + case "basis": + c.flagBasis = pf.Value().(string) + case "color": + c.flagColor = true + case "no-color": + c.flagColor = false + case "target": + c.flagTarget = pf.Value().(string) + case "remote": + c.flagRemote = true + case "no-remote": + c.flagRemote = false + } } - return remainArgs, nil }