From 7a5f3e43b52c756e564842cff5fe5efc50470867 Mon Sep 17 00:00:00 2001 From: Joe Gregorio Date: Tue, 6 Nov 2012 10:12:52 -0500 Subject: [PATCH] Refresh tools.run() flag description. Reviewed in https://codereview.appspot.com/6817088/. --- oauth2client/tools.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/oauth2client/tools.py b/oauth2client/tools.py index 37bf27d..93b0171 100644 --- a/oauth2client/tools.py +++ b/oauth2client/tools.py @@ -107,19 +107,19 @@ def run(flow, storage, http=None): It presumes it is run from a command-line application and supports the following flags: - --[no]auth_local_webserver + --auth_host_name: Host name to use when running a local web server + to handle redirects during OAuth authorization. + (default: 'localhost') - Run a local web server to handle redirects during OAuth authorization. + --auth_host_port: Port to use when running a local web server to handle + redirects during OAuth authorization.; + repeat this option to specify a list of values + (default: '[8080, 8090]') + (an integer) - --auth_host_name - - Host name to use when running a local web server to handle redirects + --[no]auth_local_webserver: Run a local web server to handle redirects during OAuth authorization. - - --auth_host_port - - Port to use when running a local web server to handle redirects during - OAuth authorization. + (default: 'true') Since it uses flags make sure to initialize the gflags module before calling run().