Skip to content

Commit

Permalink
[fetch-manifest.rb] handle lack of cmd-line arguments
Browse files Browse the repository at this point in the history
Change-Id: I214eaec59147919c92851c48d0cb47f2cf0d8c91
Reviewed-on: http://review.membase.org/5269
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Steve Yen <steve.yen@gmail.com>
  • Loading branch information
Aliaksey Kandratsenka authored and steveyen committed Apr 7, 2011
1 parent dffe227 commit 3762807
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fetch-manifest.rb
Expand Up @@ -4,6 +4,11 @@
require 'rubygems'
require 'rake'

if ARGV.size < 1
puts "I need at least 1 arg: manifest xml (Ex.: some/repo/manifest/default.xml) and (optional) override file"
exit 1
end

path = ARGV[0] # Required. Example: some/repo/manifest/default.xml
more = ARGV[1] # Optional. Example: some/override.xml

Expand Down

0 comments on commit 3762807

Please sign in to comment.