aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/args.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/args.rs b/src/args.rs
index 3fb0ede..95c8bff 100644
--- a/src/args.rs
+++ b/src/args.rs
@@ -235,7 +235,12 @@ pub struct CliArgs {
#[arg(short = 't', long = "title", env = "MINISERVE_TITLE")]
pub title: Option<String>,
- /// Set custom header for responses
+ /// Inserts custom headers into the responses. Specify each header as a 'Header:Value' pair.
+ /// This parameter can be used multiple times to add multiple headers.
+ ///
+ /// Example:
+ /// --header "Header1:Value1" --header "Header2:Value2"
+ /// (If a header is already set or previously inserted, it will not be overwritten.)
#[arg(
long = "header",
value_parser(parse_header),