Skip to content

Commit

Permalink
Allow short option -t for --temp-dir
Browse files Browse the repository at this point in the history
Closes #27
  • Loading branch information
nabijaczleweli committed Dec 20, 2016
1 parent 005d753 commit 21d8b65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/options.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ impl Options {
.arg(Arg::from_usage("[DIR] 'Directory to host. Default: current working directory'")
.validator(|s| Options::filesystem_dir_validator(s, "Directory to host")))
.arg(Arg::from_usage("-p --port [port] 'Port to use. Default: first free port from 8000 up'").validator(Options::u16_validator))
.arg(Arg::from_usage("--temp-dir [temp] 'Temporary directory. Default: $TEMP'")
.arg(Arg::from_usage("-t --temp-dir [temp] 'Temporary directory. Default: $TEMP'")
.validator(|s| Options::filesystem_dir_validator(s, "Temporary directory")))
.arg(Arg::from_usage("-s --follow-symlinks 'Follow symlinks. Default: false'"))
.arg(Arg::from_usage("-w --allow-write 'Allow for write operations. Default: false'"))
Expand Down

0 comments on commit 21d8b65

Please sign in to comment.