Skip to content

Commit ef59616

Browse files
committed
use same text for --help than in README
1 parent 0e8bd8b commit ef59616

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ USAGE:
1111
simple-http-server [FLAGS] [OPTIONS] [--] [root]
1212
1313
FLAGS:
14-
--cors Enable CORS via the "Access-Control-Allow-Origin" header
15-
--coop Add "Cross-Origin-Opener-Policy" HTTP header and set it to "same-origin"
1614
--coep Add "Cross-Origin-Embedder-Policy" HTTP header and set it to "require-corp"
15+
--coop Add "Cross-Origin-Opener-Policy" HTTP header and set it to "same-origin"
16+
--cors Enable CORS via the "Access-Control-Allow-Origin" header
1717
-h, --help Prints help information
1818
-i, --index Enable automatic render index page [index.html, index.htm]
1919
--nocache Disable http cache

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,10 @@ fn main() {
104104
.help("Enable CORS via the \"Access-Control-Allow-Origin\" header"))
105105
.arg(clap::Arg::with_name("coop")
106106
.long("coop")
107-
.help("Enable \"Cross-Origin-Opener-Policy\": same-origin"))
107+
.help("Add \"Cross-Origin-Opener-Policy\" HTTP header and set it to \"same-origin\""))
108108
.arg(clap::Arg::with_name("coep")
109109
.long("coep")
110-
.help("Enable \"Cross-Origin-Embedder-Policy\": require-corp"))
110+
.help("Add \"Cross-Origin-Embedder-Policy\" HTTP header and set it to \"require-corp\""))
111111
.arg(clap::Arg::with_name("certpass").
112112
long("certpass")
113113
.takes_value(true)

0 commit comments

Comments
 (0)