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

Use Clap V3 instead of StructOpt #850

Merged
merged 3 commits into from
Feb 28, 2022
Merged

Use Clap V3 instead of StructOpt #850

merged 3 commits into from
Feb 28, 2022

Conversation

JoshuaBatty
Copy link
Member

@JoshuaBatty JoshuaBatty commented Feb 28, 2022

StructOpt is now in maintenance mode and has been integrated into clap v0.3.

By using clap instead of StructOpt we can also take advantage of clap_complete which enables shell autocompletion.

@JoshuaBatty JoshuaBatty self-assigned this Feb 28, 2022
Copy link
Contributor

@mitchmindtree mitchmindtree left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, happy to see this land as long as we open up issues/PRs to update the clap dep upstream too.

@@ -2869,7 +2914,7 @@ version = "0.3.26"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0c6b5c64445ba8094a6ab0c3cd2ad323e07171012d9c98b0b15651daf1787a10"
dependencies = [
"clap",
"clap 2.34.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should track down whatever's using this in the other fuel repos and update those crates to also use clap 3 to avoid dependency bloat, but it's probably fine to do this in a follow-up PR.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, looks like the fuel-gql-client repo is still relying on structopt. I'll make a separate PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants