upload_symbols: Clarify parameters

Change-Id: Ia9034e18753541f15f29ea7d48f2334b0e50d538
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141221
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
This commit is contained in:
Xisco Fauli 2022-10-11 14:23:16 +02:00
parent e9920a6788
commit b3fddd8537

View file

@ -14,8 +14,8 @@ import requests
def main():
parser = argparse.ArgumentParser()
parser.add_argument('symbols_dir')
parser.add_argument('config_dir')
parser.add_argument('symbols_zip_file')
parser.add_argument('credentials_file')
parser.add_argument('version')
group = parser.add_mutually_exclusive_group()
group.add_argument('--system', action='store_true')
@ -27,12 +27,12 @@ def main():
login_url = base_url + "accounts/login/"
config = configparser.ConfigParser()
config.read(args.config_dir)
config.read(args.credentials_file)
user = config["CrashReport"]["User"]
password = config["CrashReport"]["Password"]
files = {'symbols': open(args.symbols_dir, 'rb')}
files = {'symbols': open(args.symbols_zip_file, 'rb')}
data = {'version': args.version,
'system': args.system,
'platform': platform.system() if args.platform is None else args.platform}