Skip to content

refactor: make command accessible in option parser #1301

@qweeah

Description

@qweeah

Currently options are parsed without any argument

// FlagParser parses flags in an option.
type FlagParser interface {
Parse() error
}

All option parser implementations are called in command.PreRunE, where command is actually accessible. Should pass the command to parser to facilitate cmd-specific parsing, e.g. processing the flag set.

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions