Documentation ¶
Index ¶
- Constants
- type ParsedArgs
- func (p ParsedArgs) Checksum() string
- func (p ParsedArgs) GetParameter(key string) string
- func (p ParsedArgs) GetParameterList(key string) string
- func (p ParsedArgs) IsPositionalTime() bool
- func (p ParsedArgs) ToSelfStringChunks() []string
- func (p ParsedArgs) ToSlugString() string
- func (p ParsedArgs) Validate(ctx context.Context, flags map[string]config.Flag, ...) error
Constants ¶
View Source
const ( PrefixFlag = "+" PrefixFlagClear = "_" PrefixLiteral = ":" SeparatorKeyword = "=" PositionalDelimiter = "--" FlagEnabled = "1" SerializePrefixPositional = "0" SerializePrefixFlag = "1" SerializePrefixParameter = "2" SerializeParameterSeparator = "_" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ParsedArgs ¶
type ParsedArgs struct { Parameters map[string][]string Flags map[string]bool Positional []string ExplicitPositional bool }
func Parse ¶
func Parse(args []string) (ParsedArgs, error)
func (ParsedArgs) Checksum ¶
func (p ParsedArgs) Checksum() string
func (ParsedArgs) GetParameter ¶
func (p ParsedArgs) GetParameter(key string) string
func (ParsedArgs) GetParameterList ¶
func (p ParsedArgs) GetParameterList(key string) string
func (ParsedArgs) IsPositionalTime ¶
func (p ParsedArgs) IsPositionalTime() bool
func (ParsedArgs) ToSelfStringChunks ¶
func (p ParsedArgs) ToSelfStringChunks() []string
func (ParsedArgs) ToSlugString ¶
func (p ParsedArgs) ToSlugString() string
Click to show internal directories.
Click to hide internal directories.