Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions gdrivefs/resources/scripts/gdfstool
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,16 @@ def _parser_auth_write(subparsers):

filepath = gdrivefs.config.DEFAULT_CREDENTIALS_FILEPATH

s.add_argument('--auth-storage-file',
dest="auth_storage_file",
help='Authorization storage file',
action='store',
required=False,
default=filepath)

s.add_argument(
'authcode',
help="Authorize with the given code. Write to the default " \
help="Authorize with the given code. Write to the specified " \
"credentials file-path: [{}]".format(filepath))

def _parser_auth_automatic(subparsers):
Expand Down Expand Up @@ -175,7 +182,7 @@ def main():
if args.command == 'auth_get_url':
_handle_auth_url()
elif args.command == 'auth_write':
_auth_write(None, args.authcode)
_auth_write(args.auth_storage_file, args.authcode)
elif args.command == 'auth_automatic':
_handle_auth_automatic(args)
elif args.command == 'mount':
Expand Down