@@ -12,7 +12,6 @@ use crate::config::util::tls::PrivateKeyAlgorithm;
1212) ]
1313pub struct Cli {
1414 /// Path to TOML configuration file.
15- /// https://github.com/EstebanBorai/http-server/blob/main/fixtures/config.toml
1615 #[ structopt( parse( from_os_str) , short = "c" , long = "config" ) ]
1716 pub config : Option < PathBuf > ,
1817 /// Host (IP) to bind the server
@@ -27,18 +26,16 @@ pub struct Cli {
2726 /// Turns on stdout/stderr logging
2827 #[ structopt( short = "v" , long = "verbose" ) ]
2928 pub verbose : bool ,
30- /// Enables HTTPS serving using TLS. Requires a Certificate and a Key
31- /// provided with the `tls_cert` and `tls_key` options
29+ /// Enables HTTPS serving using TLS
3230 #[ structopt( long = "tls" ) ]
3331 pub tls : bool ,
3432 /// Path to the TLS Certificate
35- #[ structopt( long = "tls_cert " , parse( from_os_str) , default_value = "cert.pem" ) ]
33+ #[ structopt( long = "tls-cert " , parse( from_os_str) , default_value = "cert.pem" ) ]
3634 pub tls_cert : PathBuf ,
3735 /// Path to the TLS Key
38- #[ structopt( long = "tls_key " , parse( from_os_str) , default_value = "key.rsa" ) ]
36+ #[ structopt( long = "tls-key " , parse( from_os_str) , default_value = "key.rsa" ) ]
3937 pub tls_key : PathBuf ,
40- /// Algorithm used to generate certificate key. Supports RSA (rsa) and
41- /// PKCS8 (pkcs8)
42- #[ structopt( long = "tls_key_algorithm" , default_value = "rsa" ) ]
38+ /// Algorithm used to generate certificate key
39+ #[ structopt( long = "tls-key-algorithm" , default_value = "rsa" ) ]
4340 pub tls_key_algorithm : PrivateKeyAlgorithm ,
4441}
0 commit comments