Skip to content
This repository has been archived by the owner on Aug 31, 2023. It is now read-only.

Commit

Permalink
chore: code suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasweng committed Oct 20, 2022
1 parent 9cdd1be commit e5ab712
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions crates/rome_cli/src/commands/help.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,12 @@ const CHECK: Markup = markup! {

const FORMAT_OPTIONS: Markup = markup! {
"
"<Dim>"--write"</Dim>" Edit the files in place (beware!) instead of printing the diff to the console
"<Dim>"--skip-errors"</Dim>" Skip over files containing syntax errors instead of emitting an error diagnostic.
"<Dim>"--indent-style <tabs|space>"</Dim>" Change the indention character (default: tabs)
"<Dim>"--indent-size <number>"</Dim>" If the indentation style is set to spaces, determine how many spaces should be used for indentation (default: 2)
"<Dim>"--line-width <number>"</Dim>" Change how many characters the formatter is allowed to print in a single line (default: 80)
"<Dim>"--quote-style <single|double>"</Dim>" Changes the quotation character for strings (default: \")
"<Dim>"--quote-properties <as-needed|preserve>"</Dim>" Changes when properties in object should be quoted (default: as-needed)
"<Dim>"--trailing-comma <all|es5>"</Dim>" Changes trailing commas in multi-line comma-separated syntactic structures (default: all)
"<Dim>"--stdin-file-path <string>"</Dim>" A file name with its extension to pass when reading from standard in, e.g. echo 'let a;' | rome format --stdin-file-path file.js
"
};

Expand All @@ -60,14 +57,8 @@ const CI: Markup = markup! {
INPUTS can be one or more filesystem path, each pointing to a single file or an entire directory to be searched recursively for supported files
"<Emphasis>"OPTIONS:"</Emphasis>"
"<Dim>"--indent-style <tabs|space>"</Dim>" Change the indention character (default: tabs)
"<Dim>"--indent-size <number>"</Dim>" If the indentation style is set to spaces, determine how many spaces should be used for indentation (default: 2)
"<Dim>"--line-width <number>"</Dim>" Change how many characters the formatter is allowed to print in a single line (default: 80)
"<Dim>"--quote-style <single|double>"</Dim>" Changes the quotation character for strings (default: \")
"<Dim>"--quote-properties <as-needed|preserve>"</Dim>" Changes when properties in object should be quoted (default: as-needed)
"<Dim>"--trailing-comma <all|es5>"</Dim>" Changes trailing commas in multi-line comma-separated syntactic structures (default: all)
"
"<Emphasis>"OPTIONS:"</Emphasis>""
{FORMAT_OPTIONS}
};

const FORMAT: Markup = markup! {
Expand All @@ -78,8 +69,12 @@ const FORMAT: Markup = markup! {
INPUTS can be one or more filesystem path, each pointing to a single file or an entire directory to be searched recursively for supported files
"<Emphasis>"OPTIONS:"</Emphasis>""
"<Emphasis>"OPTIONS:"</Emphasis>"
"<Dim>"--write"</Dim>" Edit the files in place (beware!) instead of printing the diff to the console
"<Dim>"--skip-errors"</Dim>" Skip over files containing syntax errors instead of emitting an error diagnostic."
{FORMAT_OPTIONS}
""<Dim>"--stdin-file-path <string>"</Dim>" A file name with its extension to pass when reading from standard in, e.g. echo 'let a;' | rome format --stdin-file-path file.js
"
};

const INIT: Markup = markup! {
Expand Down

0 comments on commit e5ab712

Please sign in to comment.