ruff/crates/ruff_cli/src
Aarni Koskela 7b4b004506
Harmonize help commands' --format to --output-format with deprecation warnings (#8203)
## Summary

Since `--format` was changed to `--output-format` for `check`, it feels
like it makes sense for the same to work for the auxiliary commands.

This 

* adds the same deprecation warning that used to be a thing in #7514
(and un-became a thing in #7984)

Fixes #7990.

## Test Plan

* `cargo run --bin=ruff -- rule --all --output-format=json` works
* `cargo run --bin=ruff -- rule --format=json` works with warnings
2023-10-28 03:30:46 +00:00
..
bin Replace .map_or(false, $closure) with .is_some_and(closure) (#6244) 2023-08-01 19:29:42 +02:00
commands Don't warn about magic trailing comma when isort.force-single-line is true (#8244) 2023-10-26 16:38:20 +00:00
snapshots Add ruff version with long version display (#8034) 2023-10-20 14:07:41 -05:00
args.rs Harmonize help commands' --format to --output-format with deprecation warnings (#8203) 2023-10-28 03:30:46 +00:00
cache.rs Avoid loading files for cached format results (#8134) 2023-10-23 12:29:13 +01:00
diagnostics.rs Add caching to formatter (#8089) 2023-10-23 09:43:08 +01:00
lib.rs Harmonize help commands' --format to --output-format with deprecation warnings (#8203) 2023-10-28 03:30:46 +00:00
panic.rs Disallow unreachable_pub (#4314) 2023-05-11 18:00:00 -04:00
printer.rs Avoid failed assertion when showing fixes from stdin (#8029) 2023-10-17 21:50:39 -04:00
resolve.rs Rename ConfigProcessor to ConfigurationTransformer (#7536) 2023-09-20 14:17:06 +00:00
stdin.rs Move stdin formatting to its own command file (#6981) 2023-08-29 16:06:10 +00:00
version.rs Add ruff version with long version display (#8034) 2023-10-20 14:07:41 -05:00