summaryrefslogtreecommitdiffstats
path: root/src/cli.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/cli.rs b/src/cli.rs
new file mode 100644
index 0000000..e106de7
--- /dev/null
+++ b/src/cli.rs
@@ -0,0 +1,18 @@
1use structopt::StructOpt;
2
3#[derive(Debug, Clone, StructOpt)]
4pub(crate) struct Cli {
5 #[structopt(long, short, parse(from_occurrences))]
6 pub(crate) verbosity: u8,
7
8 #[structopt(long, number_of_values = 1, parse(try_from_str = shell_words::split))]
9 pub(crate) extra_arg: Vec<Vec<String>>,
10
11 #[structopt(subcommand)]
12 pub(crate) command: Command,
13}
14
15#[derive(Debug, Clone, StructOpt)]
16pub(crate) enum Command {
17 Generate { file: String },
18}