Built-in Features
goopt
comes with a suite of powerful, “batteries-included” features designed to handle the common boilerplate of modern CLI applications, allowing you to focus on your core logic.
This section covers the out-of-the-box functionalities for generating help text, handling version flags, providing shell completion, and loading configuration from the environment.
Topics:
- The Help System: A deep dive into the adaptive and interactive help system, from automatic
--help
flags to advanced display styles. - Version Flag Support: Learn how to automatically add
--version
flag support, including dynamic versioning with build-time variables. - Shell Completion: A guide to generating and installing shell completion scripts for Bash, Zsh, Fish, and PowerShell.
- Environment & External Configuration: Learn how to load configuration from environment variables and external files.