Merge branch '16319-set-test-db-collation'
[arvados.git] / services / api / script / get_anonymous_user_token.rb
index 96619ef364fb4e1e473011b454070073292ea2e8..4bb91e244635d7c6e10dcdff32b72264141ff9de 100755 (executable)
@@ -7,9 +7,9 @@
 # If get option is used, an existing anonymous user token is returned. If none exist, one is created.
 # If the get option is omitted, a new token is created and returned.
 
-require 'trollop'
+require 'optimist'
 
-opts = Trollop::options do
+opts = Optimist::options do
   banner ''
   banner "Usage: get_anonymous_user_token "
   banner ''
@@ -30,7 +30,7 @@ act_as_system_user
 
 def create_api_client_auth(supplied_token=nil)
 
-  # If token is supplied, verify that it indeed is a superuser token
+  # If token is supplied, see if it exists
   if supplied_token
     api_client_auth = ApiClientAuthorization.
       where(api_token: supplied_token).