summaryrefslogtreecommitdiffstats
path: root/src/cli.rs
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2020-01-28 19:56:20 +0100
committerCanop <cano.petrole@gmail.com>2020-01-28 19:56:20 +0100
commit16de01b1714f8862f3b719908d672869f3ee7578 (patch)
tree471528f0697a656100af9ed5a13deeec548a7285 /src/cli.rs
parentcce3dc890c3e5ee7c20ab0242f8d7df1c78db9a9 (diff)
parent1e11bbc100febb868832b38d9c09b3ad568a3fee (diff)
Merge branch 'master' into git
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cli.rs b/src/cli.rs
index b9415a8..fb021c0 100644
--- a/src/cli.rs
+++ b/src/cli.rs
@@ -26,6 +26,7 @@ pub struct AppLaunchArgs {
pub install: bool, // installation is required
pub height: Option<u16>, // an optional height to replace the screen's one
pub no_style: bool, // whether to remove all styles (including colors)
+ pub specific_conf: Option<Vec<PathBuf>>,
}
#[cfg(not(windows))]
@@ -93,6 +94,8 @@ pub fn read_launch_args() -> Result<AppLaunchArgs, ProgramError> {
tree_options.show_hidden = true;
tree_options.respect_git_ignore = false;
}
+ let specific_conf = cli_args.value_of("conf")
+ .map(|s| s.split(';').map(PathBuf::from).collect());
Ok(AppLaunchArgs {
root,
file_export_path,
@@ -104,6 +107,7 @@ pub fn read_launch_args() -> Result<AppLaunchArgs, ProgramError> {
install,
height,
no_style,
+ specific_conf,
})
}