Skip to content

Commit bb27308

Browse files
committed
Use clap instead of getopts to parse cli args
`clap` allows using subcommands, which are helpfull for the input methods. This also makes the main method a lot shorter, since there is no need to add every single command line option per manually. This is handled by the `derive` feature of `clap` and the new `Args` struct.
1 parent 5d6fcea commit bb27308

File tree

4 files changed

+277
-204
lines changed

4 files changed

+277
-204
lines changed

Cargo.lock

+187-8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ edition = "2021"
77

88
[dependencies]
99
chrono = "*"
10-
getopts = "*"
10+
clap = { version = "*", features = ["derive"] }
1111
sysexits = "*"

0 commit comments

Comments
 (0)