diff --git a/README.md b/README.md index 44af130..74a2901 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,7 @@ Precompiled binaries are available for Linux, macOS, and Windows. Use the `--help` argument for more details. ```bash -minify-html --src /path/to/src.html --out /path/to/output.min.html --css --js +minify-html --output /path/to/output.min.html --keep-closing-tags --minify-css /path/to/src.html ``` diff --git a/cli/src/main.rs b/cli/src/main.rs index 42d266f..ffbb25c 100644 --- a/cli/src/main.rs +++ b/cli/src/main.rs @@ -13,11 +13,11 @@ use minify_html::{minify, Cfg}; // WARNING: Keep descriptions in sync with Cfg. struct Cli { /// File to minify; omit for stdin. - #[structopt(short, long, parse(from_os_str))] - src: Option, + #[structopt(parse(from_os_str))] + input: Option, /// Output destination; omit for stdout. #[structopt(short, long, parse(from_os_str))] - out: Option, + output: Option, /// Minify JS in `