Skip to content

Commit

Permalink
feat(wallet): add help for wallet cli commands (#4162)
Browse files Browse the repository at this point in the history
Description
---
Converts all wallet commands to use clap instead, providing help when called with `--help`

* Note: Also commented out the Script mode. I think we can remove this now as it's not used
* Note: Deleted all of the previous arg passing logic.
* Note: Deleted previous `register_asset` and other asset-y commands

Motivation and Context
---
This is IMHO a much cleaner and extendible way of calling commands and seeing what the required fields are. It also allows defaults to be added (e.g. default, overrideable messages)

How Has This Been Tested?
---
manually
  • Loading branch information
stringhandler authored Jun 6, 2022
1 parent f76b22f commit 859b7d3
Show file tree
Hide file tree
Showing 8 changed files with 329 additions and 1,048 deletions.
2 changes: 1 addition & 1 deletion applications/tari_app_utilities/src/utilities.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ pub fn either_to_node_id(either: Either<CommsPublicKey, NodeId>) -> NodeId {
}
}

#[derive(Debug)]
#[derive(Debug, Clone)]
pub struct UniPublicKey(PublicKey);

impl FromStr for UniPublicKey {
Expand Down
Loading

0 comments on commit 859b7d3

Please sign in to comment.