|
@ -7,7 +7,7 @@ use acme_common::crypto::{get_lib_name, get_lib_version, HashFunction, KeyType, |
|
|
use acme_common::error::Error;
|
|
|
use acme_common::error::Error;
|
|
|
use acme_common::logs::{set_log_system, DEFAULT_LOG_LEVEL};
|
|
|
use acme_common::logs::{set_log_system, DEFAULT_LOG_LEVEL};
|
|
|
use acme_common::{clean_pid_file, to_idna};
|
|
|
use acme_common::{clean_pid_file, to_idna};
|
|
|
use clap::{App, Arg, ArgMatches};
|
|
|
|
|
|
|
|
|
use clap::{Arg, ArgMatches, Command};
|
|
|
use log::{debug, error, info};
|
|
|
use log::{debug, error, info};
|
|
|
use std::fs::File;
|
|
|
use std::fs::File;
|
|
|
use std::io::{self, Read};
|
|
|
use std::io::{self, Read};
|
|
@ -79,7 +79,7 @@ fn main() { |
|
|
let default_crt_key_type = DEFAULT_CRT_KEY_TYPE.to_string();
|
|
|
let default_crt_key_type = DEFAULT_CRT_KEY_TYPE.to_string();
|
|
|
let default_crt_digest = DEFAULT_CRT_DIGEST.to_string();
|
|
|
let default_crt_digest = DEFAULT_CRT_DIGEST.to_string();
|
|
|
let default_log_level = DEFAULT_LOG_LEVEL.to_string().to_lowercase();
|
|
|
let default_log_level = DEFAULT_LOG_LEVEL.to_string().to_lowercase();
|
|
|
let matches = App::new(APP_NAME)
|
|
|
|
|
|
|
|
|
let matches = Command::new(APP_NAME)
|
|
|
.version(APP_VERSION)
|
|
|
.version(APP_VERSION)
|
|
|
.long_version(full_version.as_str())
|
|
|
.long_version(full_version.as_str())
|
|
|
.arg(
|
|
|
.arg(
|
|
|