Skip to main content

csusage_cli_parser/
lib.rs

1//! Argument parsing and `--help` rendering for the ccusage CLI.
2//!
3//! Split from `ccusage-cli`, which holds the plain argument types the runtime
4//! crates need: the parser embeds the generated help tables through a build
5//! script, so keeping it here means editing help text does not invalidate
6//! ccusage-core or any adapter.
7use csusage_cli::{Command, SharedArgs};
8
9mod arg_parser;
10mod help;
11mod parser;
12
13pub struct Cli {
14    pub command: Option<Command>,
15    pub shared: SharedArgs,
16}
17
18#[cfg(test)]
19mod help_codegen;
20
21#[cfg(test)]
22mod tests;