-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
main: Parse per-service cmdline arguments
Previously all the params had to be unique between services because clap didn't yet support what we want: clap-rs/clap#2222 It still doesn't, but we can hack our way by parsing the args string manually, and passing different parts to different sub-parsers. $ cargo run -- --help Cabal Online Replacement Services Usage: cabal-mgr [OPTIONS] [-s|--service <SERVICE1> <SERVICE1_OPTIONS>] [-s|--service <SERVICE2...>] Services: crypto-mgr RockAndRoll equivalent event-mgr EventMgr equivalent proxy Options: -r, --resources-dir <RESOURCES_DIR> [default: .] -h, --help Print help (see a summary with '-h') -V, --version Print version Examples: ./cabal_mgr -s crypto-mgr --service event-mgr
- Loading branch information
Showing
7 changed files
with
166 additions
and
46 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
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
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
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
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
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
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