diff options
author | Canop <cano.petrole@gmail.com> | 2020-01-28 19:56:20 +0100 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2020-01-28 19:56:20 +0100 |
commit | 16de01b1714f8862f3b719908d672869f3ee7578 (patch) | |
tree | 471528f0697a656100af9ed5a13deeec548a7285 /src/cli.rs | |
parent | cce3dc890c3e5ee7c20ab0242f8d7df1c78db9a9 (diff) | |
parent | 1e11bbc100febb868832b38d9c09b3ad568a3fee (diff) |
Merge branch 'master' into git
Diffstat (limited to 'src/cli.rs')
-rw-r--r-- | src/cli.rs | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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, }) } |