diff --git a/README.md b/README.md index cbbee8d5e779284a7de313dc0050c37cde8a7784..08bdd099ece67abff3f72f81810cb0ccf8af41e0 100644 --- a/README.md +++ b/README.md @@ -11,9 +11,9 @@ USAGE: simple-http-server [FLAGS] [OPTIONS] [--] [root] FLAGS: - --cors Enable CORS via the "Access-Control-Allow-Origin" header - --coop Add "Cross-Origin-Opener-Policy" HTTP header and set it to "same-origin" --coep Add "Cross-Origin-Embedder-Policy" HTTP header and set it to "require-corp" + --coop Add "Cross-Origin-Opener-Policy" HTTP header and set it to "same-origin" + --cors Enable CORS via the "Access-Control-Allow-Origin" header -h, --help Prints help information -i, --index Enable automatic render index page [index.html, index.htm] --nocache Disable http cache diff --git a/src/main.rs b/src/main.rs index 3ff8c0a2c377dcf87f3a7a99e90502883243f6d4..e6f404b93603193bb81b960474d0034a172a1f72 100644 --- a/src/main.rs +++ b/src/main.rs @@ -104,10 +104,10 @@ fn main() { .help("Enable CORS via the \"Access-Control-Allow-Origin\" header")) .arg(clap::Arg::with_name("coop") .long("coop") - .help("Enable \"Cross-Origin-Opener-Policy\": same-origin")) + .help("Add \"Cross-Origin-Opener-Policy\" HTTP header and set it to \"same-origin\"")) .arg(clap::Arg::with_name("coep") .long("coep") - .help("Enable \"Cross-Origin-Embedder-Policy\": require-corp")) + .help("Add \"Cross-Origin-Embedder-Policy\" HTTP header and set it to \"require-corp\"")) .arg(clap::Arg::with_name("certpass"). long("certpass") .takes_value(true)