Skip to content

Commit

Permalink
fix --date-format argument name
Browse files Browse the repository at this point in the history
  • Loading branch information
Yo'av Moshe committed Apr 17, 2023
1 parent 025ceec commit 0e1c9f9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "wttrbar"
version = "0.3.0"
version = "0.3.1"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand Down
2 changes: 1 addition & 1 deletion main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ fn main() {
None => "temp_C",
};

let date_format = match args.iter().position(|arg| arg == "--dateformat") {
let date_format = match args.iter().position(|arg| arg == "--date-format") {
Some(index) => args.get(index + 1).unwrap(),
None => "%Y-%m-%d",
};
Expand Down

0 comments on commit 0e1c9f9

Please sign in to comment.