improve help texts

This commit is contained in:
Johann150 2021-03-25 21:42:24 +01:00
parent c338696242
commit e6f70722de
No known key found for this signature in database
GPG key ID: 9EE6577A2A06F8F1

View file

@ -98,7 +98,7 @@ fn args() -> Result<Args> {
opts.optopt( opts.optopt(
"", "",
"certs", "certs",
"folder for certificate files (default ./.certificates/)", "Root of the certificate directory (default ./.certificates/)",
"DIR", "DIR",
); );
opts.optmulti( opts.optmulti(
@ -110,7 +110,7 @@ fn args() -> Result<Args> {
opts.optmulti( opts.optmulti(
"", "",
"hostname", "hostname",
"Domain name of this Gemini server (default is not checking hostname or port; multiple occurences means basic vhosts)", "Domain name of this Gemini server, enables checking hostname and port in requests. (multiple occurences means basic vhosts)",
"NAME", "NAME",
); );
opts.optopt( opts.optopt(
@ -120,7 +120,7 @@ fn args() -> Result<Args> {
"LANG", "LANG",
); );
opts.optflag("s", "silent", "Disable logging output"); opts.optflag("s", "silent", "Disable logging output");
opts.optflag("h", "help", "Print this help menu and exit."); opts.optflag("h", "help", "Print this help text and exit.");
opts.optflag("V", "version", "Print version information and exit."); opts.optflag("V", "version", "Print version information and exit.");
opts.optflag( opts.optflag(
"3", "3",
@ -132,11 +132,11 @@ fn args() -> Result<Args> {
"serve-secret", "serve-secret",
"Enable serving secret files (files/directories starting with a dot)", "Enable serving secret files (files/directories starting with a dot)",
); );
opts.optflag("", "log-ip", "Output IP addresses when logging"); opts.optflag("", "log-ip", "Output the remote IP address when logging.");
opts.optflag( opts.optflag(
"C", "C",
"central-conf", "central-conf",
"Use a central .meta file in the content root directory.", "Use a central .meta file in the content root directory. Decentral config files will be ignored.",
); );
let matches = opts.parse(&args[1..]).map_err(|f| f.to_string())?; let matches = opts.parse(&args[1..]).map_err(|f| f.to_string())?;