libluaudoc/
cli.rs

1use std::path::PathBuf;
2
3use structopt::StructOpt;
4
5#[derive(Debug, StructOpt)]
6#[structopt(about = env!("CARGO_PKG_DESCRIPTION"))]
7pub struct Args {
8    #[structopt(subcommand)]
9    pub subcommand: Subcommand,
10}
11
12#[derive(Debug, StructOpt)]
13pub enum Subcommand {
14    Extract(ExtractSubcommand),
15}
16
17/// Extracts doc comments from the given files
18#[derive(Debug, StructOpt)]
19pub struct ExtractSubcommand {
20    pub input_path: Option<PathBuf>,
21
22    /// The base path that source paths in the output will be relative to.
23    /// If unspecified, the input path is used.
24    #[structopt(long = "base", short = "b")]
25    pub base_path: Option<PathBuf>,
26}