nushell/crates/nu-protocol/src/errors
NotTheDr01ds 5b7e8bf1d8
Deprecate --numbered from for (#13112)
# Description

#7777 removed the `--numbered` flag from `each`, `par-each`, `reduce`,
and `each while`. It was suggested at the time that it should be removed
from `for` as well, but for several reasons it wasn't.

This PR deprecates `--numbered` in anticipation of removing it in 0.96.

Note: Please review carefully, as this is my first "real" Rust/Nushell
code. I was hoping that some prior commit would be useful as a template,
but since this was an argument on a parser keyword, I didn't find too
much useful. So I had to actually find the relevant helpers in the code
and `nu_protocol` doc and learn how to use them - oh darn ;-) But please
make sure I did it correctly.

# User-Facing Changes

* Use of `--numbered` will result in a deprecation warning.
* Changed help example to demonstrate the new syntax.
* Help shows deprecation notice on the flag
2024-06-10 03:01:22 +00:00
..
cli_error.rs Refactor the CLI code a bit (#12782) 2024-05-10 07:29:27 +08:00
labeled_error.rs bump rust-toolchain to 1.75.0 (#12258) 2024-03-21 13:23:39 -05:00
mod.rs Better generic errors for plugins (and perhaps scripts) (#12236) 2024-03-21 12:27:21 +01:00
parse_error.rs Fix panic when redirecting nothing (#12970) 2024-05-27 10:03:06 +08:00
parse_warning.rs Deprecate --numbered from for (#13112) 2024-06-10 03:01:22 +00:00
shell_error.rs fix: coredump without any messages (#13034) 2024-06-07 08:02:52 -05:00