summaryrefslogtreecommitdiffstats
path: root/src/cli.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/cli.rs b/src/cli.rs
new file mode 100644
index 0000000..30e771a
--- /dev/null
+++ b/src/cli.rs
@@ -0,0 +1,21 @@
1use clap::{AppSettings, Parser};
2
3// TODO: document
4
5#[derive(Debug, Parser)]
6#[clap(setting = AppSettings::InferSubcommands)]
7pub struct Cli {
8 #[clap(short, long, default_value = "pdbook.toml")]
9 pub config: String,
10 #[clap(short, long)]
11 pub quiet: bool,
12 #[clap(short, long, parse(from_occurrences))]
13 pub verbose: u8,
14 #[clap(subcommand)]
15 pub subcommand: SubCommand,
16}
17
18#[derive(Debug, Parser)]
19pub enum SubCommand {
20 Build,
21}