Merge branch 'master' of git.clinicalfuture.com:arvados into 1692-redesign-dashboard
[arvados.git] / apps / admin / setup-new-user.rb
index e2bf1cfeba99d77d1be3e4614974a89aa53fd844..f3758e05997a12f04047b049e8bda4b3930433b4 100755 (executable)
@@ -21,12 +21,12 @@ active, the given repository already exists, etc.
 end
     
 if ARGV.count != 3
-  abort "Usage: #{$0} user_uuid_or_email user_and_repo_name vm_uuid"
+  Trollop::die "required arguments are missing"
 end
 user_arg, user_repo_name, vm_uuid = ARGV
 
 require 'arvados'
-arv = Arvados.new
+arv = Arvados.new(api_version: 'v1')
 
 # Look up the given user by uuid or, failing that, email address.
 user = begin