Skip to main content

Module warn

Module warn 

Source
Expand description

What a parse has to say about declarations that still work but should not be used.

The reference implementation’s half of what usage-argv reports from its static tables. Both answer the same question — which deprecated declarations did this command line use — and the rule they answer it by is written down at https://usage.jdx.dev/spec/argv, not in either crate. Neither can depend on the other: usage-argv has no dependencies at all, on purpose.

Nothing here prints. A resolution reports, as configuration resolution does, so a CLI that queues its deprecations until its logging is up can have them as values.

Structs§

Warning
One thing a command line used that its own spec says not to use any more.

Enums§

WarningKind
The kinds of deprecation a parse can run into.

Functions§

compare
Order two versions, or None if either is not a version this can read.
render
Everything, one line each, in the order they were collected.
retain_reached
Drop the warnings a CLI at version has not reached yet.
version_reaches
Whether a CLI at current has reached the release a deprecation starts warning at.