Skip to content
Snippets Groups Projects
Commit ef596161 authored by Samuel DA MOTA's avatar Samuel DA MOTA
Browse files

use same text for --help than in README

parent 0e8bd8b3
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment