clap_doc_generator 0.1.0

Automatically generate CLI documentation from clap definitions and update readme files
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#[derive(Debug)]
pub struct ArgInfo {
    pub signature: String,
    pub help: String,
    pub default: Option<String>,
    pub required: bool,
    pub possible_values: Vec<String>,
}

#[derive(Debug)]
pub struct CommandInfo {
    pub name: String,
    pub about: String,
    pub args: Vec<ArgInfo>,
    pub subcommands: Vec<CommandInfo>,
}