Proper error handling of missing arguments to all box commands
This commit is contained in:
parent
9fce04c2cd
commit
f2eff93c38
|
@ -1,6 +1,6 @@
|
|||
## 0.9.3 (unreleased)
|
||||
|
||||
- Proper error handling for not enough arguments to `box add`.
|
||||
- Proper error handling for not enough arguments to `box` commands.
|
||||
|
||||
## 0.9.2 (January 20, 2012)
|
||||
|
||||
|
|
|
@ -13,6 +13,7 @@ module Vagrant
|
|||
# Parse the options
|
||||
argv = parse_options(opts)
|
||||
return if !argv
|
||||
raise Errors::CLIInvalidUsage, :help => opts.help.chomp if argv.length < 1
|
||||
|
||||
b = @env.boxes.find(argv[0])
|
||||
raise Errors::BoxNotFound, :name => argv[0] if !b
|
||||
|
|
|
@ -13,6 +13,7 @@ module Vagrant
|
|||
# Parse the options
|
||||
argv = parse_options(opts)
|
||||
return if !argv
|
||||
raise Errors::CLIInvalidUsage, :help => opts.help.chomp if argv.length < 1
|
||||
|
||||
b = @env.boxes.find(argv[0])
|
||||
raise Errors::BoxNotFound, :name => argv[0] if !b
|
||||
|
|
Loading…
Reference in New Issue