Add short options for justfile and working-directory (#222)

Adds -f and -d as short options for --justfile and --working-directory
respectively.

Thanks @chrisvittal!
This commit is contained in:
Christopher Vittal 2017-09-11 01:56:17 -04:00 committed by Casey Rodarmor
parent e22da124d4
commit a07fc226c1

View File

@ -64,6 +64,7 @@ pub fn app() {
.long("highlight")
.help("Highlight echoed recipe lines in bold"))
.arg(Arg::with_name("JUSTFILE")
.short("f")
.long("justfile")
.takes_value(true)
.help("Uses <JUSTFILE> as justfile. --working-directory must also be set")
@ -103,6 +104,7 @@ pub fn app() {
.long("verbose")
.help("Use verbose output"))
.arg(Arg::with_name("WORKING-DIRECTORY")
.short("d")
.long("working-directory")
.takes_value(true)
.help("Uses <WORKING-DIRECTORY> as working directory. --justfile must also be set")