You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We use this logic to print the help programmatically:
if let Err(err) = WalletCli::try_parse_from(vec!["Wallet:", "help"]) {
println!("{err}");
}
If I understand correctly ... we print the error which just contains the help text because try_parse_from failed. Is there no clean way to achieve this that doesn't involve error logic?
Motivation
The code is weird.
Open questions (optional)
Maybe this is the way. I dunno. My dark saber is broken.
Are you planning to do it yourself in a pull request?
Maybe.
The text was updated successfully, but these errors were encountered:
Description
We use this logic to print the help programmatically:
If I understand correctly ... we print the error which just contains the help text because
try_parse_from
failed. Is there no clean way to achieve this that doesn't involve error logic?Motivation
The code is weird.
Open questions (optional)
Maybe this is the way. I dunno. My dark saber is broken.
Are you planning to do it yourself in a pull request?
Maybe.
The text was updated successfully, but these errors were encountered: