diff options
author | Dean Li <deantvv@gmail.com> | 2021-04-11 03:00:16 +0000 |
---|---|---|
committer | Dean Li <deantvv@gmail.com> | 2021-04-11 03:00:16 +0000 |
commit | 2bae301ed8efcf4239849a45b94cdc42e398b905 (patch) | |
tree | 06cfbebfc33cca930a80b9c080de3af1dcfdc815 /src/args.rs | |
parent | Merge pull request #488 from svenstaro/dependabot/cargo/http-0.2.4 (diff) | |
download | miniserve-2bae301ed8efcf4239849a45b94cdc42e398b905.tar.gz miniserve-2bae301ed8efcf4239849a45b94cdc42e398b905.zip |
Separate tar archive and tar flags
It used to have one flag (-r) to enable both tar archive and tar.
Now it has two flags [ -r: for tar, -g: for tar archive].
Related to #451
Diffstat (limited to '')
-rw-r--r-- | src/args.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/args.rs b/src/args.rs index 81e49dc..bf30254 100644 --- a/src/args.rs +++ b/src/args.rs @@ -99,10 +99,14 @@ pub struct CliArgs { #[structopt(short = "o", long = "overwrite-files")] pub overwrite_files: bool, - /// Enable tar archive generation + /// Enable tar generation #[structopt(short = "r", long = "enable-tar")] pub enable_tar: bool, + /// Enable tar archive generation + #[structopt(short = "g", long = "enable-tar-archive")] + pub enable_tar_archive: bool, + /// Enable zip archive generation /// /// WARNING: Zipping large directories can result in out-of-memory exception |