summaryrefslogtreecommitdiffstats
path: root/src/cli.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/cli.rs b/src/cli.rs
index 0a883af..ff25792 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -1,4 +1,4 @@
1use crate::config::Config; 1use crate::config::ProvidedConfig;
2 2
3use structopt::StructOpt; 3use structopt::StructOpt;
4 4
@@ -9,9 +9,6 @@ pub(crate) struct Cli {
9 #[structopt(long, short, parse(from_occurrences))] 9 #[structopt(long, short, parse(from_occurrences))]
10 pub(crate) verbosity: u8, 10 pub(crate) verbosity: u8,
11 11
12 #[structopt(long, number_of_values = 1, parse(try_from_str = shell_words::split))]
13 pub(crate) extra_arg: Vec<Vec<String>>,
14
15 #[structopt(long, short = "C", default_value = ".")] 12 #[structopt(long, short = "C", default_value = ".")]
16 pub(crate) directory: PathBuf, 13 pub(crate) directory: PathBuf,
17 14
@@ -19,7 +16,7 @@ pub(crate) struct Cli {
19 pub(crate) command: Command, 16 pub(crate) command: Command,
20 17
21 #[structopt(flatten)] 18 #[structopt(flatten)]
22 pub(crate) common_options: Config, 19 pub(crate) common_options: ProvidedConfig,
23} 20}
24 21
25#[derive(Debug, Clone, StructOpt)] 22#[derive(Debug, Clone, StructOpt)]