diff options
| author | Jack Nagel | 2013-08-14 22:13:26 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-08-14 22:13:26 -0500 |
| commit | fe92c0468a0ecfa96fd3cef313747a248db163f9 (patch) | |
| tree | b0fa82f41fe9bf35a87972d6916e40f7f907c0bc /Library | |
| parent | c9e17804ef152395e1b68a9c078eb651a684c5de (diff) | |
| download | homebrew-fe92c0468a0ecfa96fd3cef313747a248db163f9.tar.bz2 | |
unpack: extract usage
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Contributions/cmd/brew-unpack.rb | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/Library/Contributions/cmd/brew-unpack.rb b/Library/Contributions/cmd/brew-unpack.rb index 86cf4018a..805af8e42 100755 --- a/Library/Contributions/cmd/brew-unpack.rb +++ b/Library/Contributions/cmd/brew-unpack.rb @@ -48,19 +48,20 @@ class Formula end module Homebrew extend self - def unpack - unpack_usage = <<-EOS -Usage: brew unpack [-pg] [--destdir=path/to/extract/in] <formulae ...> + def unpack_usage; <<-EOS.undent + Usage: brew unpack [-pg] [--destdir=path/to/extract/in] <formulae ...> -Unpack formulae source code for inspection. + Unpack formulae source code for inspection. -Formulae archives will be extracted to subfolders inside the current working -directory or a directory specified by `--destdir`. If the `-p` option is -supplied, patches will also be downloaded and applied. If the `-g` option is -specified a git repository is created and all files added so that you can diff -changes. + Formulae archives will be extracted to subfolders inside the current working + directory or a directory specified by `--destdir`. If the `-p` option is + supplied, patches will also be downloaded and applied. If the `-g` option is + specified a git repository is created and all files added so that you can diff + changes. EOS + end + def unpack abort unpack_usage if ARGV.empty? formulae = ARGV.formulae |
