diff options
Diffstat (limited to 'src/cli.rs')
-rw-r--r-- | src/cli.rs | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -5,6 +5,7 @@ use structopt::StructOpt; | |||
5 | use std::path::PathBuf; | 5 | use std::path::PathBuf; |
6 | 6 | ||
7 | #[derive(Debug, Clone, StructOpt)] | 7 | #[derive(Debug, Clone, StructOpt)] |
8 | #[structopt(setting = structopt::clap::AppSettings::ColoredHelp)] | ||
8 | pub(crate) struct Cli { | 9 | pub(crate) struct Cli { |
9 | #[structopt(long, short, parse(from_occurrences))] | 10 | #[structopt(long, short, parse(from_occurrences))] |
10 | pub(crate) verbosity: u8, | 11 | pub(crate) verbosity: u8, |
@@ -22,9 +23,11 @@ pub(crate) struct Cli { | |||
22 | #[derive(Debug, Clone, StructOpt)] | 23 | #[derive(Debug, Clone, StructOpt)] |
23 | pub(crate) enum Command { | 24 | pub(crate) enum Command { |
24 | Generate { | 25 | Generate { |
25 | file: String, | 26 | file: Option<String>, |
27 | }, | ||
28 | Inspect { | ||
29 | file: Option<String>, | ||
26 | }, | 30 | }, |
27 | Inspect, | ||
28 | Config { | 31 | Config { |
29 | #[structopt(subcommand)] | 32 | #[structopt(subcommand)] |
30 | command: ConfigCommand, | 33 | command: ConfigCommand, |