Skip to content
This repository has been archived by the owner on May 11, 2022. It is now read-only.

remove FlagSet #2

Open
kamilsk opened this issue Feb 26, 2019 · 0 comments
Open

remove FlagSet #2

kamilsk opened this issue Feb 26, 2019 · 0 comments

Comments

@kamilsk
Copy link
Member

kamilsk commented Feb 26, 2019

	if c.Flags == nil {
		c.Flags = c.BaseCommand.FlagSet(c.CmdName)
		c.Flags.BoolVar(&c.Edit, "edit", false, "switch to edit mode to read arguments from input (not implemented yet)")
	}
	return c.Flags

should be refactored to stateless

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant