git-commit, rubocop: use grouped parameters (#13636)

Followup to the https://github.com/tldr-pages/tldr/pulls/13609 to update `git-commit` and `rubocop` pages for English translation/
pull/28/head
Reinhart Previano Koentjoro 2024-09-08 22:51:32 +07:00 committed by GitHub
parent 3332b48ec1
commit bef3ac7c95
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -25,7 +25,7 @@
- Commit only specific (already staged) files: - Commit only specific (already staged) files:
`git commit {{path/to/file1}} {{path/to/file2}}` `git commit {{path/to/file1 path/to/file2 ...}}`
- Create a commit, even if there are no staged files: - Create a commit, even if there are no staged files:

View File

@ -9,7 +9,7 @@
- Check one or more specific files or directories: - Check one or more specific files or directories:
`rubocop {{path/to/file}} {{path/to/directory}}` `rubocop {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}`
- Write output to file: - Write output to file:
@ -21,11 +21,11 @@
- Exclude a cop: - Exclude a cop:
`rubocop --except {{cop_1}} {{cop_2}}` `rubocop --except {{cop1 cop2 ...}}`
- Run only specified cops: - Run only specified cops:
`rubocop --only {{cop_1}} {{cop_2}}` `rubocop --only {{cop1 cop2 ...}}`
- Auto-correct files (experimental): - Auto-correct files (experimental):