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.
Currently options are parsed without any argument
oras/cmd/oras/internal/option/parser.go
Lines 22 to 25 in e8da6e5
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.