diff options
author | proudmuslim-dev <69869443+proudmuslim-dev@users.noreply.github.com> | 2023-08-03 18:06:21 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-08-03 18:06:21 +0000 |
commit | be54a9d3364166039f2b84f85f23b26a6edd09ba (patch) | |
tree | 982fa260c4af7596a2bc6eba768b586414dde09d | |
parent | Update src/args.rs (diff) | |
download | miniserve-be54a9d3364166039f2b84f85f23b26a6edd09ba.tar.gz miniserve-be54a9d3364166039f2b84f85f23b26a6edd09ba.zip |
Add file content example to `--auth-file` argument
Diffstat (limited to '')
-rw-r--r-- | src/args.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/args.rs b/src/args.rs index 9e66580..87ecabb 100644 --- a/src/args.rs +++ b/src/args.rs @@ -72,7 +72,11 @@ pub struct CliArgs { )] pub auth: Vec<auth::RequiredAuth>, - /// Read authentication values from a file + /// Read authentication values from a file. Example file content: + /// + /// joe:123 + /// bob:sha256:a665a45920422f9d417e4867efdc4fb8a04a1f3fff1fa07e998e86f7f7a27ae3 + /// bill: #[arg(long, value_hint = ValueHint::FilePath, env = "MINISERVE_AUTH_FILE")] pub auth_file: Option<PathBuf>, |