Skip to content

Commit

Permalink
Stop highlighting --help output in README as shell (#1655)
Browse files Browse the repository at this point in the history
This PR is meant to address the following obviously unintended GitHub
rendering:

![image](https://user-images.githubusercontent.com/73739153/210713719-7fb465b1-db91-4074-8a0c-4efa3c47c2f4.png)
  • Loading branch information
not-my-profile committed Jan 5, 2023
1 parent 53e3dd8 commit 2045b73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -312,7 +312,7 @@ ruff path/to/code/ --select F401 --select F403
See `ruff --help` for more:

<!-- Begin auto-generated cli help. -->
```shell
```
Ruff: An extremely fast Python linter.
Usage: ruff [OPTIONS] [FILES]...
Expand Down
2 changes: 1 addition & 1 deletion ruff_dev/src/generate_cli_help.rs
Expand Up @@ -28,7 +28,7 @@ pub fn main(cli: &Cli) -> Result<()> {
print!("{output}");
} else {
replace_readme_section(
&format!("```shell\n{output}\n```\n"),
&format!("```\n{output}\n```\n"),
HELP_BEGIN_PRAGMA,
HELP_END_PRAGMA,
)?;
Expand Down

0 comments on commit 2045b73

Please sign in to comment.