-
Notifications
You must be signed in to change notification settings - Fork 201
Closed
Description
Currently options are parsed without any argument
oras/cmd/oras/internal/option/parser.go
Lines 22 to 25 in e8da6e5
// 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
Assignees
Labels
enhancementNew feature or requestNew feature or request