Advanced topics

Configuration patterns for complex CLIs with shared state across commands.

Global options - Share flags across all commands with UseGlobalOptions<T>(). Parsed before routing, available everywhere.

Namespace options - Scope options to a namespace and its children with UseNamespaceOptions<T>(). Must inherit the parent options type.