triobarter.blogg.se

Xstand kingpin blind
Xstand kingpin blind






xstand kingpin blind

Added UsageForContextWithTemplate() for printing usage via a custom template.Added Terminate() function to override the termination function.Added ParseContext() for parsing a command line into its intermediate context form without executing.The new parser directly supports expanding Added FatalUsage() and FatalUsageContext() for displaying an error + usage and terminating. Previously, if a short flag was used, any argument to that flag would have toīe separated by a space.

xstand kingpin blind

Short flags can be combined with their parameters $ chat post -server=:8080 -image=~/Downloads/owls.jpg pics Immediately after their associated command. User-visible changes between v1 and v2 Flags can be used at any point after their definition.įlags can be specified at any point after their definition, not just Read command-line from files ( Automatically generate man pages ( -help-man).Short-flag+parameter combining ( -a parm -> -aparm).POSIX-style short flag combining ( -a -b -> -ab).Callbacks per command, flag and argument ( kingpin.Command("c", "").Action(myAction)).Support for arbitrarily nested default commands ( command.Default()).Support for required flags and required positional arguments ( kingpin.Flag("f", "").Required().Int()).Parsed, type-safe, arbitrarily deep commands ( kingpin.Command("c", "help")).Parsed, type-safe positional arguments ( kingpin.Arg("a", "help").Int()).Parsed, type-safe flags ( kingpin.Flag("f", "help").Int()).Fully customisable help, via Go templates.Kingpin tries to provide detailedĬontextual help if -help is encountered at any point in the command line Important thing a command-line parser does. Second to parsing, providing the user with useful help is probably the most Displaying errors and usage information.Short flags can be combined with their parameters.Flags can be used at any point after their definition.Kingpin - A Go (golang) command line and flag parser Rather than leave the project in a limbo of people filing issues and wondering why they're not being worked on, I believe this notice will more clearly set expectations. Why? I no longer use Kingpin personally (I now use kong). There hasn't been a need to add new features in a while, but there are some bugs that should be fixed. If you are interested in taking over maintenance and have a history of contributions to Kingpin, please let me know.Ĭurrent status. The only way fixes or new features will be added is by people submitting PRs. What does this mean? I do not have time to fix issues myself.








Xstand kingpin blind