Overview of Kingpin Features
masterKingpin provides several advanced CLI capabilities:
- Type-safe parsing: Supports
Int(),String(),Bool(), and more for both flags and positional arguments. - Nested Commands: Create arbitrarily deep command hierarchies using
kingpin.Command(). - Required Inputs: Enforce presence of flags or arguments using
.Required(). - Callbacks: Execute logic via
.Action(myAction)on commands, flags, or arguments. - POSIX-style flags: Supports combining short flags (e.g.,
-ab) and combining short flags with parameters (e.g.,-aparm). - File Expansion: Read command-line arguments from files using the
@<file>syntax. - Help Generation: Automatically generates man pages via
--help-manand provides customizable help via Go templates.