diff options
| author | a-kenji <aks.kenji@protonmail.com> | 2021-04-21 08:58:38 +0200 |
|---|---|---|
| committer | a-kenji <aks.kenji@protonmail.com> | 2021-04-21 09:03:46 +0200 |
| commit | 2c12e8ff8324b3ebaa10ac8162af09f5da295e1b (patch) | |
| tree | 674d5988c5ca0a34e6931798467fed61b45da3cf /src/common/mod.rs | |
| parent | fix(release): beta tag breaks cargo install (diff) | |
| download | sl0ppij-2c12e8ff8324b3ebaa10ac8162af09f5da295e1b.tar.gz sl0ppij-2c12e8ff8324b3ebaa10ac8162af09f5da295e1b.tar.xz sl0ppij-2c12e8ff8324b3ebaa10ac8162af09f5da295e1b.zip | |
Change Config To Flag (#290)
This changes the `config` subcommand to a config flag.
Add option subcommand for now, for the clearing of default path.
Add `ZELLIJ_CONFIG` environment variable.
The configuration locations are now as follows:
* `--config` flag
* `ZELLIJ_CONFIG` environment variable
* default config location
in that order.
Diffstat (limited to 'src/common/mod.rs')
| -rw-r--r-- | src/common/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/mod.rs b/src/common/mod.rs index 860d12db..e2cd2220 100644 --- a/src/common/mod.rs +++ b/src/common/mod.rs @@ -128,7 +128,7 @@ pub fn start(mut os_input: Box<dyn OsApi>, opts: CliArgs) { .write(take_snapshot.as_bytes()) .unwrap(); - let config = Config::from_cli_config(opts.config) + let config = Config::from_cli_config(opts.config, opts.option) .map_err(|e| { eprintln!("There was an error in the config file:\n{}", e); std::process::exit(1); |
