pub async fn discover_subcommand_hierarchy(
program: &str,
config: &ProbeConfig,
max_depth: usize,
) -> Result<Vec<SubcommandSpec>>Expand description
Recursively discover subcommand hierarchy by probing each subcommand.
This function probes each subcommand to discover:
- Subcommand-specific options
- Subcommand-specific arguments
- Nested subcommands
ยงArguments
program- The command to probeconfig- Configuration for probingmax_depth- Maximum depth to recurse (prevents infinite loops)