Kingpin is a fluent-style, type-safe command-line parser. It supports flags, nested commands, and positional arguments. Second to parsing, providing the user with useful help is probably the most important thing a command-line parser does. Kingpin tries to provide detailed contextual help if --help is encountered at any point in the command line (excluding after --). Flags can be specified at any point after their definition, not just immediately after their associated command. Kingpin can be used for simple flag+arg applications. Kingpin supports reading arguments from a file.

Features

  • Help output that isn't as ugly as sin
  • Fully customisable help, via Go templates
  • Parsed, type-safe flags
  • Parsed, type-safe positional arguments
  • Support for required flags and required positional arguments
  • Callbacks per command, flag and argument

Project Samples

Project Activity

See All Activity >

Categories

Terminals

License

MIT License

Follow Kingpin

Kingpin Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Kingpin!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Go

Related Categories

Go Terminals

Registered

2023-01-16