Documentation
¶
Overview ¶
Package xflag parses flags interspersed with positional arguments.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseToEnd ¶
ParseToEnd is a drop-in replacement for flag.Parse. It improves upon the standard behavior by parsing flags even when they are interspersed with positional arguments. This overcomes Go's default limitation of stopping flag parsing upon encountering the first positional argument. For more details, see:
This is a bit unfortunate, but most users nowadays consuming CLI tools expect this behavior.
Types ¶
This section is empty.