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:

  1. The Help System: A deep dive into the adaptive and interactive help system, from automatic --help flags to advanced display styles.
  2. Version Flag Support: Learn how to automatically add --version flag support, including dynamic versioning with build-time variables.
  3. Shell Completion: A guide to generating and installing shell completion scripts for Bash, Zsh, Fish, and PowerShell.
  4. Environment & External Configuration: Learn how to load configuration from environment variables and external files.

Table of contents