Skip to content

Commit

Permalink
Run updated rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
theodore-s-beers committed Nov 25, 2023
1 parent b652617 commit fea99c7
Showing 1 changed file with 28 additions and 27 deletions.
55 changes: 28 additions & 27 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,33 +20,34 @@ fn main() -> Result<(), anyhow::Error> {
// CLI SETUP
//

let matches = command!()
.arg(
Arg::new("clear-cache")
.long("clear-cache")
.help("Delete cache directory and its contents")
.action(ArgAction::SetTrue),
)
.arg(
Arg::new("etymology")
.short('e')
.long("etymology")
.help("Search for etymology instead of definition")
.action(ArgAction::SetTrue),
)
.arg(
Arg::new("fetch-update")
.short('f')
.long("fetch-update")
.help("Fetch new data; update cache if applicable")
.action(ArgAction::SetTrue),
)
.arg(
Arg::new("INPUT")
.help("The word or phrase to look up")
.required_unless_present("clear-cache"),
)
.get_matches();
let matches =
command!()
.arg(
Arg::new("clear-cache")
.long("clear-cache")
.help("Delete cache directory and its contents")
.action(ArgAction::SetTrue),
)
.arg(
Arg::new("etymology")
.short('e')
.long("etymology")
.help("Search for etymology instead of definition")
.action(ArgAction::SetTrue),
)
.arg(
Arg::new("fetch-update")
.short('f')
.long("fetch-update")
.help("Fetch new data; update cache if applicable")
.action(ArgAction::SetTrue),
)
.arg(
Arg::new("INPUT")
.help("The word or phrase to look up")
.required_unless_present("clear-cache"),
)
.get_matches();

//
// "GLOBAL" VARIABLES
Expand Down

0 comments on commit fea99c7

Please sign in to comment.