Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--dry-run option broken? #59

Closed
pure-blue opened this issue Feb 20, 2024 · 3 comments · Fixed by #62
Closed

--dry-run option broken? #59

pure-blue opened this issue Feb 20, 2024 · 3 comments · Fixed by #62

Comments

@pure-blue
Copy link

pure-blue commented Feb 20, 2024

I just wanted to check this out, so the --dry-run option seemed perfect. But when I run it, I get this:

brew rmtree --dry-run eza
This is a dry-run, nothing will be deleted
Usage: brew uses [options] formula [...]

Show formulae and casks that specify formula as a dependency; that is, show
dependents of formula. When given multiple formula arguments, show the
intersection of formulae that use formula. By default, uses shows all
formulae and casks that specify formula as a required or recommended
dependency for their stable builds.

Note: --missing and --skip-recommended have precedence over --include-*.

      --recursive                  Resolve more than one level of dependencies.
      --installed                  Only list formulae and casks that are
                                   currently installed.
      --missing                    Only list formulae and casks that are not
                                   currently installed.
      --eval-all                   Evaluate all available formulae and casks,
                                   whether installed or not, to show their
                                   dependents.
      --include-build              Include formulae that specify formula as a
                                   :build dependency.
      --include-test               Include formulae that specify formula as a
                                   :test dependency.
      --include-optional           Include formulae that specify formula as an
                                   :optional dependency.
      --skip-recommended           Skip all formulae that specify formula as a
                                   :recommended dependency.
      --formula, --formulae        Include only formulae.
      --cask, --casks              Include only casks.
  -d, --debug                      Display any debugging information.
  -q, --quiet                      Make some output more quiet.
  -v, --verbose                    Make some output more verbose.
  -h, --help                       Show this message.
Error: invalid option: --dry-run

which is weird because

brew rmtree --help

[...]

You can use --dry-run (alias -n) to see what would be removed without
  actually removing anything.

[...]

Tried brew update, brew upgrade, and brew doctor with no luck. The standard brew rmtree eza works just fine, (then I just hit N to not remove anything).

@caseyduquettesc
Copy link
Collaborator

Probably broken by 5eed352

@pure-blue
Copy link
Author

pure-blue commented Feb 20, 2024

Ah. Just curious because I'm a total beginner: does it look like it was removed purposefully? I only know python (and just barely), so I can't really read the code, but I see some text that seems like it might be suggesting that it needed to be removed to solve some other issue.

@caseyduquettesc
Copy link
Collaborator

Looks like it was broken accidentally while trying to make rmtree forwards compatible with homebrew changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants