Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Find a way to cleanly print wallet and account help #296

Closed
Alex6323 opened this issue Apr 20, 2023 · 1 comment
Closed

Find a way to cleanly print wallet and account help #296

Alex6323 opened this issue Apr 20, 2023 · 1 comment
Assignees
Labels
m-cli Module - CLI t-impl Task - Implementation
Milestone

Comments

@Alex6323
Copy link
Contributor

Alex6323 commented Apr 20, 2023

Description

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.

@github-project-automation github-project-automation bot moved this to Product Backlog in iota-sdk Apr 27, 2023
@thibault-martinez thibault-martinez added this to the v1.1.0 milestone Apr 28, 2023
@thibault-martinez thibault-martinez added m-cli Module - CLI t-impl Task - Implementation labels May 4, 2023
@thibault-martinez thibault-martinez self-assigned this Sep 4, 2023
@thibault-martinez
Copy link
Member

Closed by #1154

@github-project-automation github-project-automation bot moved this from Product Backlog to Done in iota-sdk Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
m-cli Module - CLI t-impl Task - Implementation
Projects
Status: Done
Development

No branches or pull requests

2 participants