Skip to content

Commit

Permalink
fix: remove default for sortformat
Browse files Browse the repository at this point in the history
  • Loading branch information
joeirimpan committed Mar 15, 2023
1 parent 2860110 commit d1e8ca5
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,7 @@ fn main() -> Result<(), Error> {
.arg(arg!(--dir <path_to_directory>).required(true))
.arg(arg!(--password <password>).required(false))
.arg(arg!(--output <output>).required(true))
.arg(
arg!(--sortformat <date_format>)
.required(false)
.default_value("%d-%m-%Y"),
)
.arg(arg!(--sortformat <date_format>).required(false))
.get_matches();

let path = matches.get_one::<String>("dir");
Expand Down

0 comments on commit d1e8ca5

Please sign in to comment.