From bef3ac7c95e619804ad781edd09fbe9512473ad8 Mon Sep 17 00:00:00 2001 From: Reinhart Previano Koentjoro Date: Sun, 8 Sep 2024 22:51:32 +0700 Subject: [PATCH] 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/ --- pages/common/git-commit.md | 2 +- pages/common/rubocop.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/common/git-commit.md b/pages/common/git-commit.md index 61146a5b6..1c5984e2e 100644 --- a/pages/common/git-commit.md +++ b/pages/common/git-commit.md @@ -25,7 +25,7 @@ - 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: diff --git a/pages/common/rubocop.md b/pages/common/rubocop.md index dc2b9ebec..86b8ae822 100644 --- a/pages/common/rubocop.md +++ b/pages/common/rubocop.md @@ -9,7 +9,7 @@ - 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: @@ -21,11 +21,11 @@ - Exclude a cop: -`rubocop --except {{cop_1}} {{cop_2}}` +`rubocop --except {{cop1 cop2 ...}}` - Run only specified cops: -`rubocop --only {{cop_1}} {{cop_2}}` +`rubocop --only {{cop1 cop2 ...}}` - Auto-correct files (experimental):