Skip to content

Migrate from structopt to clap v4 - #89

Open
jamesjer wants to merge 1 commit into
peal:masterfrom
jamesjer:master
Open

jamesjer wants to merge 1 commit into
peal:masterfrom
jamesjer:master

Conversation

@jamesjer

Copy link
Copy Markdown

The structopt crate is obsolete. Its functionality has been integrated into clap versions 3 and newer. The last actual release was in 2021; v0.3.26 in 2022 only added a deprecation notice to the docs.

The structopt crate has also been officially marked as unmaintained a few months ago: https://rustsec.org/advisories/RUSTSEC-2022-0104.html.

This PR migrates from structopt to clap v4.

(The text above is derived from https://bugzilla.redhat.com/show_bug.cgi?id=2554591)

@ChrisJefferson

Copy link
Copy Markdown
Collaborator

Are there any issues with structopt? It seems to work fine, it parses arguments, maybe it just doesn't need updates.

@jamesjer

Copy link
Copy Markdown
Author

Sure, I'm not suggesting there is anything wrong with structopt, but there are still good reasons to switch:

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants