Skip to content

Commit

Permalink
[feat] use clap Derive API to accept command line arguments (#247)
Browse files Browse the repository at this point in the history
* [feat] Use clap derive API to parse CLI arguments

This patch removes the usage of clap::Command and arg macros, and bumps
the library version to use the new derive API which is the recommended
method upstream.

Signed-off-by: innocentzero <[email protected]>

* [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]>

* [fix] separate default cooldown to a separate variable

Signed-off-by: innocentzero <[email protected]>

* [fix]: conflicting short options in swhkd

This patch fixes the conflicting short options in swhkd and implements
alternative short option forms.

Signed-off-by: innocentzero <[email protected]>

* [fix] Swap short options for config and cooldown

This change is meant to make the changes backwards compatible for the
user.

Signed-off-by: innocentzero <[email protected]>

* [fix] Apply env refactoring to swhkd

Signed-off-by: innocentzero <[email protected]>

---------

Signed-off-by: innocentzero <[email protected]>
  • Loading branch information
InnocentZero authored Mar 27, 2024
1 parent 3bb60d3 commit b0fe88c
Show file tree
Hide file tree
Showing 5 changed files with 240 additions and 121 deletions.
Loading

0 comments on commit b0fe88c

Please sign in to comment.