From ef596161a64f3e6465f6e8f7c05721b2b64cf53d Mon Sep 17 00:00:00 2001
From: Samuel DA MOTA <da.mota.sam@gmail.com>
Date: Sat, 16 Jul 2022 17:32:32 +0200
Subject: [PATCH] use same text for --help than in README

---
 README.md   | 4 ++--
 src/main.rs | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/README.md b/README.md
index cbbee8d..08bdd09 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 3ff8c0a..e6f404b 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)
-- 
GitLab