diff options
author | Vojtěch Pejša <vojtechpejsa7@gmail.com> | 2019-03-29 22:33:27 +0000 |
---|---|---|
committer | Vojtěch Pejša <vojtechpejsa7@gmail.com> | 2019-04-04 08:51:00 +0000 |
commit | 93ea625fe29ea02c5bda6b4f6361134a0fe667f0 (patch) | |
tree | be186a0ca7515457cfbc73ee1f315ddeaabdaee6 /src/args.rs | |
parent | Fix syntax error and clippy warnings. (diff) | |
download | miniserve-93ea625fe29ea02c5bda6b4f6361134a0fe667f0.tar.gz miniserve-93ea625fe29ea02c5bda6b4f6361134a0fe667f0.zip |
Fix typos and indentation.
Diffstat (limited to 'src/args.rs')
-rw-r--r-- | src/args.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/args.rs b/src/args.rs index 7fa5121..bb52824 100644 --- a/src/args.rs +++ b/src/args.rs @@ -53,8 +53,8 @@ struct CLIArgs { file_upload: bool, /// Enable overriding existing files during file upload - #[structopt(short = "o", long = "owerride-files")] - override_files: bool, + #[structopt(short = "o", long = "overwrite-files")] + overwrite_files: bool, } /// Checks wether an interface is valid, i.e. it can be parsed into an IP address @@ -108,7 +108,7 @@ pub fn parse_args() -> crate::MiniserveConfig { path_explicitly_chosen, no_symlinks: args.no_symlinks, random_route, - override_files: args.override_files, + overwrite_files: args.overwrite_files, file_upload: args.file_upload, } } |