﻿---
title: Advanced topics
description: Configuration patterns for complex CLIs with shared state across commands. Global options - Share flags across all commands with UseGlobalOptions<T>()...
url: https://docs-v3-preview.elastic.dev/argh/advanced
---

# Advanced topics
Configuration patterns for complex CLIs with shared state across commands.

## In this section

[**Global options**](https://docs-v3-preview.elastic.dev/argh/advanced/global-options) - Share flags across all commands with `UseGlobalOptions<T>()`. Parsed before routing, available everywhere.
[**Namespace options**](https://docs-v3-preview.elastic.dev/argh/advanced/namespace-options) - Scope options to a namespace and its children with `UseNamespaceOptions<T>()`. Must inherit the parent options type.