Skip to content

Commit

Permalink
main: switch command parsing to use clap
Browse files Browse the repository at this point in the history
Partially revert 111225a
and add the new dbus and pvpanic arguments.

As we are switching back to clap observe the following changes.

A few examples:

1. `-v -v -v` needs to be written as`-vvv`
2. `--disk D1 --disk D2` and others need to be written as `--disk D1 D2`.
3. `--option value` needs to be written as `--option=value.`

Change integration tests to adapt to the breaking changes.

Signed-off-by: Wei Liu <[email protected]>
Signed-off-by: Ravi kumar Veeramally <[email protected]>
  • Loading branch information
liuw authored and likebreath committed Oct 20, 2023
1 parent 6113483 commit 7bc3452
Show file tree
Hide file tree
Showing 10 changed files with 807 additions and 469 deletions.
107 changes: 100 additions & 7 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ debug = true
anyhow = "1.0.75"
api_client = { path = "api_client" }
argh = "0.1.9"
clap = { version = "4.3.11", features = ["string"] }
dhat = { version = "0.3.2", optional = true }
epoll = "4.3.3"
event_monitor = { path = "event_monitor" }
Expand Down
Loading

0 comments on commit 7bc3452

Please sign in to comment.