Skip to content

Commit

Permalink
Tweak help command message for --server option
Browse files Browse the repository at this point in the history
Follow up rubocop@17f2994.

This PR tweaks help command message for `--server` option.
  • Loading branch information
koic authored and bbatsov committed Jun 12, 2022
1 parent 94d4ed6 commit f133b38
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions lib/rubocop/options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -581,11 +581,11 @@ module OptionsHelp
stdin: ['Pipe source from STDIN, using FILE in offense',
'reports. This is useful for editor integration.'],
init: 'Generate a .rubocop.yml file in the current directory.',
server: ['If server process has not started yet, start the',
'server process and execute inspection with server.',
server: ['If a server process has not been started yet, start',
'the server process and execute inspection with server.',
'Default is false.',
'You can specify server host and port with',
'the $RUBOCOP_SERVER_HOST and the $RUBOCOP_SERVER_PORT',
'You can specify the server host and port with the',
'$RUBOCOP_SERVER_HOST and the $RUBOCOP_SERVER_PORT',
'environment variables.'],
restart_server: 'Restart server process.',
start_server: 'Start server process.',
Expand Down
8 changes: 4 additions & 4 deletions spec/rubocop/options_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ def abs(path)
the $RUBOCOP_CACHE_ROOT environment variable.
Server Options:
--[no-]server If server process has not started yet, start the
server process and execute inspection with server.
--[no-]server If a server process has not been started yet, start
the server process and execute inspection with server.
Default is false.
You can specify server host and port with
the $RUBOCOP_SERVER_HOST and the $RUBOCOP_SERVER_PORT
You can specify the server host and port with the
$RUBOCOP_SERVER_HOST and the $RUBOCOP_SERVER_PORT
environment variables.
--restart-server Restart server process.
--start-server Start server process.
Expand Down

0 comments on commit f133b38

Please sign in to comment.