Skip to content

Commit

Permalink
Add short options for justfile and working-directory (#222)
Browse files Browse the repository at this point in the history
Adds -f and -d as short options for --justfile and --working-directory
respectively.

Thanks @chrisvittal!
  • Loading branch information
chrisvittal authored and casey committed Sep 11, 2017
1 parent e22da12 commit a07fc22
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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")
Expand Down

0 comments on commit a07fc22

Please sign in to comment.