X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/9151ad624bef1ae076940298c6890deadd79e2dd..988181fdaf1485bea89445c1621f8344256ec707:/services/api/script/get_anonymous_user_token.rb diff --git a/services/api/script/get_anonymous_user_token.rb b/services/api/script/get_anonymous_user_token.rb index 96619ef364..4bb91e2446 100755 --- a/services/api/script/get_anonymous_user_token.rb +++ b/services/api/script/get_anonymous_user_token.rb @@ -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).