-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[feat] Use clap derive API to parse CLI arguments
This patch follows the previous one to update the method of taking arguments for swhks. The derive API is the recommended method upstream. Signed-off-by: innocentzero <[email protected]>
- Loading branch information
1 parent
475ad90
commit 2b4fcb7
Showing
2 changed files
with
22 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,15 +7,15 @@ version = "1.3.0-dev" | |
authors = [ | ||
"Shinyzenith <[email protected]>\n", | ||
"Angelo Fallaria <[email protected]>\n", | ||
"EdenQwQ <[email protected]>\n" | ||
"EdenQwQ <[email protected]>\n", | ||
] | ||
|
||
[dependencies] | ||
env_logger = "0.9.0" | ||
log = "0.4.14" | ||
nix = "0.23.1" | ||
sysinfo = "0.23.5" | ||
clap = "3.1.6" | ||
clap = { version = "4.1.0", features = ["derive"] } | ||
|
||
[[bin]] | ||
name = "swhks" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters