From f3234ece91de424ba319f96aa62d9261702ee403 Mon Sep 17 00:00:00 2001 From: Ian Gregory Date: Tue, 7 Apr 2020 17:46:03 -0400 Subject: [PATCH 1/2] Add -n alias for --dry-run --- cmd/brew-rmtree.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/brew-rmtree.rb b/cmd/brew-rmtree.rb index 42975d3..e0b1fd0 100755 --- a/cmd/brew-rmtree.rb +++ b/cmd/brew-rmtree.rb @@ -1,5 +1,5 @@ #: -#: * `rmtree` [`--force`] [`--dry-run`] [`--quiet`] [`--ignore=`formulaX,formulaY] formula1 [formula2] [formula3]... +#: * `rmtree` [`--force`] [`-n`|`--dry-run`] [`--quiet`] [`--ignore=`formulaX,formulaY] formula1 [formula2] [formula3]... #: #: Remove a formula entirely, including all of its dependencies, #: unless of course, they are used by another formula. @@ -17,7 +17,7 @@ #: #: With `--ignore`, you can ignore some dependencies from being removed. #: -#: You can use `--dry-run` to see what would be removed without actually removing +#: You can use `--dry-run` (alias `-n`) to see what would be removed without actually removing #: anything. #: #: `--quiet` will hide output. @@ -508,7 +508,7 @@ def rmtree_args EOS switch "--quiet", description: "Hide output." - switch "--dry-run", + switch "-n", "--dry-run", description: "See what would be removed without actually removing anything." switch "--force", description: "Force the removal of even if other formulae depend on it. " + From 5ec87bf32c4232b9bd0d47ddda87c42202388f4a Mon Sep 17 00:00:00 2001 From: Ian Gregory Date: Tue, 7 Apr 2020 17:50:58 -0400 Subject: [PATCH 2/2] Fix help text styling --- cmd/brew-rmtree.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/brew-rmtree.rb b/cmd/brew-rmtree.rb index e0b1fd0..f44bdab 100755 --- a/cmd/brew-rmtree.rb +++ b/cmd/brew-rmtree.rb @@ -17,8 +17,8 @@ #: #: With `--ignore`, you can ignore some dependencies from being removed. #: -#: You can use `--dry-run` (alias `-n`) to see what would be removed without actually removing -#: anything. +#: You can use `--dry-run` (alias `-n`) to see what would be removed without +#: actually removing anything. #: #: `--quiet` will hide output. #: