diff options
Diffstat (limited to 'src/cli.rs')
-rw-r--r-- | src/cli.rs | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -1,4 +1,4 @@ | |||
1 | use crate::config::Config; | 1 | use crate::config::ProvidedConfig; |
2 | 2 | ||
3 | use structopt::StructOpt; | 3 | use 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)] |