Conversation
We do not want to support the --{subcommand} legacy format for new
subcommands ... only for subcommands that used this format previously.
0f30301 to
ad5ccb8
Compare
|
Are there any analogies we can draw to other tools, to help inform the user-facing API for the CLI? E.g., |
|
Yes I think it's quite common for commands to default to listing when there's no more apt action, examples that come to mind:
|
8617c07 to
a455222
Compare
|
Appreciate it. I don't plan to release tonight either way :) |
The doc comment and the env attribute were copied by mistake.
We probably want to introduce multiple explain subcommands and overloading `explain` to explain it all seems like a bad idea. We may want to introduce a subcommand to explain config options and config options may end up having the same name as their rules, e.g. the current `banned-api` is both a rule name (although not yet exposed to the user) and a config option. The idea is: * `ruff rule` lists all rules supported by ruff * `ruff rule <code>` explains a specific rule * `ruff linter` lists all linters supported by ruff * `ruff linter <name>` lists all rules/options supported by a specific linter (After this commit only the 2nd case is implemented.)
a455222 to
b9f0a93
Compare
|
I just want to note that if we want to change To clarify my commit message: At some point in the future we may have:
... if we only had |
|
@not-my-profile - anything you think is missing / preventing us from cutting a release, now that this is merged? |
|
No, I don't see anything else blocking a new release :) |
(See the commit messages for the reasoning.)