def _main(argv):
parser = argparse.ArgumentParser(<EOL>description=DESCRIPTION,<EOL>formatter_class=argparse.RawDescriptionHelpFormatter,<EOL>)<EOL>parser.add_argument(<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>default=URL_BASE,<EOL>help='<STR_LIT>' % URL_BASE,<EOL>)<EOL>parser.add_argument(<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>default=None,<EOL>help='<STR_LIT>',<EOL>)<EOL>parser.add_argument(<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>default='<STR_LIT>',<EOL>help='<STR_LIT>',<EOL>)<EOL>parser.add_argument('<STR_LIT>', '<STR_LIT>', help="<STR_LIT>")<EOL>parser.add_argument(<EOL>'<STR_LIT>',<EOL>'<STR_LIT>',<EOL>action='<STR_LIT:store_true>',<EOL>help='<STR_LIT>',<EOL>)<EOL>parser.add_argument(<EOL>'<STR_LIT>',<EOL>help='<STR_LIT>',<EOL>)<EOL>parser.add_argument(<EOL>'<STR_LIT>',<EOL>nargs='<STR_LIT:?>',<EOL>default=None,<EOL>help='<STR_LIT>',<EOL>)<EOL>args = parser.parse_args(argv)<EOL>if args.save_token:<EOL><INDENT>if not args.token:<EOL><INDENT>raise ValueError("<STR_LIT>")<EOL><DEDENT>LuminosoClient.save_token(args.token,<EOL>domain=urlparse(args.base_url).netloc)<EOL><DEDENT>client = LuminosoClient.connect(url=args.base_url, token=args.token)<EOL>name = args.project_name<EOL>if name is None:<EOL><INDENT>name = input('<STR_LIT>')<EOL>if not name:<EOL><INDENT>print('<STR_LIT>')<EOL>return<EOL><DEDENT><DEDENT>result = upload_docs(<EOL>client,<EOL>args.input_filename,<EOL>args.language,<EOL>name,<EOL>account=args.account_id,<EOL>progress=True,<EOL>)<EOL>print(<EOL>'<STR_LIT>'.format(<EOL>result['<STR_LIT>'], result['<STR_LIT>']<EOL>)<EOL>)<EOL>
Handle arguments for the 'lumi-upload' command.