Open GoogleCodeExporter opened 9 years ago
Moreover, it would be nice if run_flow didn't need command-line arguments at
all, and could just take named arguments. This makes the default code much more
verbose than before.
For instance, I used to be able to do:
credentials = run(flow, STORAGE)
No I have to do:
from oauth2client import tools
argparser = argparse.ArgumentParser(
description=__doc__,
formatter_class=argparse.RawDescriptionHelpFormatter,
parents=[tools.argparser])
flags = argparser.parse_args(sys.argv[1:])
credentials = tools.run_flow(flow, storage, flags)
Original comment by jtig...@gmail.com
on 30 Mar 2014 at 8:39
Original issue reported on code.google.com by
jay@ditoweb.com
on 26 Aug 2013 at 2:35