summaryrefslogtreecommitdiffstats
path: root/src/main.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/main.rs b/src/main.rs
index d95ef4a..d1c0f02 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -66,7 +66,7 @@ fn load_config() -> ProxyConfig {
let args: Vec<String> = env::args().collect();
let args: Vec<&str> = args.iter().map(|x| x.as_str()).collect();
let mut config_path: Option<String> = None;
- let mut allow_all_indices = false;
+ let mut unsafe_all_indices = false;
// first parse CLI arg
match args.as_slice() {
@@ -80,7 +80,7 @@ fn load_config() -> ProxyConfig {
std::process::exit(0);
}
[_, "--config", p] => config_path = Some(p.to_string()),
- [_, "--allow-all-indices"] => allow_all_indices = true,
+ [_, "--unsafe-all-indices"] => unsafe_all_indices = true,
_ => {
eprintln!("{}", usage());
eprintln!("couldn't parse arguments");
@@ -101,8 +101,8 @@ fn load_config() -> ProxyConfig {
} else {
ProxyConfig::default()
};
- if allow_all_indices {
- config.allow_all_indices = Some(true);
+ if unsafe_all_indices {
+ config.unsafe_all_indices = Some(true);
}
config
}