import click
import webbrowser

import floyd
from floyd.client.auth import AuthClient
from floyd.manager.auth_config import AuthConfigManager
from floyd.model.access_token import AccessToken
from floyd.log import logger as floyd_logger


@click.command()
def login():
    """
    Log into Floyd via Auth0.
    """
    cli_info_url = "{}/welcome".format(floyd.floyd_web_host)
    click.confirm('Authentication token page will now open in your browser. Continue?', abort=True, default=True)

    webbrowser.open(cli_info_url)
    access_code = click.prompt('Please copy and paste the token here', type=str, hide_input=True)

    user = AuthClient().get_user(access_code)
    access_token = AccessToken(username=user.username,
                               token=access_code)
    AuthConfigManager.set_access_token(access_token)
    floyd_logger.info("Login Successful")


@click.command()
def logout():
    """
    Logout of Floyd.
    """
    AuthConfigManager.purge_access_token()

@@ -244,24 +244,103 @@
 k.command()%0A
+@click.option('--token', is_flag=True, default=False, help='Just enter token')%0A
 def login():
@@ -337,16 +337,21 @@
 f login(
+token
 ):%0A    %22
@@ -387,24 +387,46 @@
 h0.%0A    %22%22%22%0A
+    if not token:%0A    
     cli_info
@@ -474,16 +474,20 @@
 b_host)%0A
+    
     clic
@@ -589,24 +589,28 @@
 ault=True)%0A%0A
+    
     webbrows
@@ -631,16 +631,17 @@
 fo_url)%0A
+%0A
     acce

Add support for --token in login command