Skip to main content

build_cli

Function build_cli 

Source
pub fn build_cli() -> Command
Expand description

Build the canonical Cli command tree.

Public so completions.rs (and any future helper) can reach a mutable Command for clap_complete::generate. We construct from Cli::command() rather than Cli::parse() because parse also validates against std::env::args() (inconvenient in tests).