revert: purge client auth from main branch. it needs to reconsider...

This commit is contained in:
Jun Kurihara 2022-10-13 18:11:21 +09:00
commit ddf4afbf4b
No known key found for this signature in database
GPG key ID: 48ADFD173ED22B03
4 changed files with 8 additions and 8 deletions

View file

@ -18,12 +18,12 @@ pub fn parse_opts(globals: &mut Globals) -> std::result::Result<(), anyhow::Erro
Arg::new("config_file")
.long("config")
.short('c')
.takes_value(true)
.value_name("FILE")
.help("Configuration file path like \"./config.toml\""),
);
let matches = options.get_matches();
let config = if let Some(config_file_path) = matches.value_of("config_file") {
let config = if let Some(config_file_path) = matches.get_one::<String>("config_file") {
ConfigToml::new(config_file_path)?
} else {
// Default config Toml