diff options
author | Minijackson <minijackson@riseup.net> | 2021-11-07 23:09:34 +0100 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2021-11-07 23:09:34 +0100 |
commit | 517cabe8ec54d0bf5f5f9cc9089d76a1fad7bb6a (patch) | |
tree | 3140cf7b16727f4752633f4e6f5d098f23889af0 /src/cli.rs | |
download | pandoc-docbook-517cabe8ec54d0bf5f5f9cc9089d76a1fad7bb6a.tar.gz pandoc-docbook-517cabe8ec54d0bf5f5f9cc9089d76a1fad7bb6a.zip |
initial commit with PoC
Diffstat (limited to 'src/cli.rs')
-rw-r--r-- | src/cli.rs | 21 |
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 @@ | |||
1 | use clap::{AppSettings, Parser}; | ||
2 | |||
3 | // TODO: document | ||
4 | |||
5 | #[derive(Debug, Parser)] | ||
6 | #[clap(setting = AppSettings::InferSubcommands)] | ||
7 | pub 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)] | ||
19 | pub enum SubCommand { | ||
20 | Build, | ||
21 | } | ||