TeXitoi / structopt

Parse command line arguments by defining a struct.
Other
2.71k stars 152 forks source link

structopt is in maintenance mode, see clap for new development #525

Open epage opened 2 years ago

epage commented 2 years ago

structopt is a derive wrapper around clap v2. As of clap v3, the derive wrapper is included with clap under the derive feature flag. A migration guide is available for users wishing to switch.

Both clap v2 and structopt are in maintenance mode. They both depend on ansi_term which is unmaintained.

I've seen users posting here and elsewhere who are unaware of the migration. Dependabot, cargo outdated, and cargo upgrade won't report anything.

epage commented 2 years ago

Brainstorming:

TeXitoi commented 2 years ago

But maybe the interesting part is that cargo outdated and friend don't report anything. Maybe I can publish a structopt v0.4 (or v1?) that is empty and point to clap v3, for easy discoverability?

epage commented 2 years ago

Yeah. didn't call that out but it seems like it'd be nice to have a database for cargo outdated that fills a purpose besides rustsec.

If you are up for a dummy release, that works too.

TeXitoi commented 2 years ago

This issue is now pinned, not sure it will change anything, but that's free :-)

pinkforest commented 2 years ago

We could always flag informational = unmaintained on structopt if @TeXitoi agrees ?

We flag informational advisories routinely to deprecate or handle superceded crates when the maintainer asks us to do so.

Note ansi_term was deprecated so we've had to include structopt/clap2 specific advice there.