# 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 ''
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).