Skip to content

Commit

Permalink
Merge pull request #1636 from yedhink/1635-bundle-dump-custom-file-he…
Browse files Browse the repository at this point in the history
…lp-docs

bundle dump: Clarify `--file` usage for reading and writing
  • Loading branch information
MikeMcQuaid authored Mar 6, 2025
2 parents f88c47d + ef34a24 commit 87fa1e6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmd/bundle.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class BundleCmd < AbstractCommand
Shorthand for `brew bundle install --upgrade`.
`brew bundle dump`:
Write all installed casks/formulae/images/taps into a `Brewfile` in the current directory.
Write all installed casks/formulae/images/taps into a `Brewfile` in the current directory or to a custom file specified with the `--file` option.
`brew bundle cleanup`:
Uninstall all dependencies not present in the `Brewfile`.
Expand Down Expand Up @@ -67,9 +67,10 @@ class BundleCmd < AbstractCommand
Print the environment variables that would be set in a `brew bundle exec` environment.
EOS
flag "--file=",
description: "Read the `Brewfile` from this location. Use `--file=-` to pipe to stdin/stdout."
description: "Read from or write to the `Brewfile` from this location." \
"Use `--file=-` to pipe to stdin/stdout."
switch "--global",
description: "Read the `Brewfile` from `$HOMEBREW_BUNDLE_FILE_GLOBAL` (if set), " \
description: "Read from or write to the `Brewfile` from `$HOMEBREW_BUNDLE_FILE_GLOBAL` (if set), " \
"`${XDG_CONFIG_HOME}/homebrew/Brewfile` (if `$XDG_CONFIG_HOME` is set), " \
"`~/.homebrew/Brewfile` or `~/.Brewfile` otherwise."
switch "-v", "--verbose",
Expand Down

0 comments on commit 87fa1e6

Please sign in to comment.