diff options
| author | Jack Nagel | 2013-08-14 22:13:26 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-08-14 22:13:26 -0500 |
| commit | b0073ccdf03e71f2ebef4a1711d6e9eb811747cd (patch) | |
| tree | eaae0ec79ad06ff6c3b2c76097e867bd4a6fd1d1 /Library | |
| parent | 262afced5ec9ee67b0616ad454bb49b48e90ab53 (diff) | |
| download | brew-b0073ccdf03e71f2ebef4a1711d6e9eb811747cd.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 |
