diff options
| author | Max Howell | 2009-10-26 18:16:42 +0000 |
|---|---|---|
| committer | Max Howell | 2009-11-07 18:22:33 +0000 |
| commit | 8081a95c4acc2e83de22453b663959af9fc85ac5 (patch) | |
| tree | 6fdb789b2330cd17d147aae8d50efc3349b47ac9 /bin | |
| parent | 03ca3e24d0ccd4633a29aab6b1dc1c43ead5c4e2 (diff) | |
| download | brew-8081a95c4acc2e83de22453b663959af9fc85ac5.tar.bz2 | |
Better errors if missing keg or formula arguments
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/brew | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -224,6 +224,12 @@ begin puts ARGV.usage end +rescue FormulaUnspecifiedError + puts "This command requires a formula argument" + exit 1 +rescue KegUnspecifiedError + puts "This command requires a keg argument" + exit 1 rescue UsageError onoe "Invalid usage" puts ARGV.usage |
