INNER CODE UNIT · Python
parse_arguments
AUNaseef/protonup · protonup/cli.py:8
def parse_arguments():
"""Parse commandline arguments"""
parser = argparse.ArgumentParser(usage="%(prog)s", description="Manage Proton-GE Installations",
epilog="GPLv3 - Repo : https://github.com/AUNaseef/protonup")
parser.add_argument('-t', '--tag', type=str, default=None, help='install a specific version')
parser.add_argument('-l', '--list', action='store_true', help='list installed versions')
parser.add_argument('-r', '--remove', type=str, default=None, metavar='TAG',
help='remove existing installations')
parser.add_argument('-o', '--output', type=str, default=None, metavar='DIR',
help='set download directory')
parser.add_argument('-d', '--dir', type=str, default=None, help='set installation directory')
parser.add_argument('--dirs', action='store_true', help='list available install directories')
parser.add_argument('-y', '--yes', action='store_true', help='disable prompts and logs')
parser.add_argument('--download', action='store_true', help='download only')
parser.add_argument('--releases', action='store_true', help='list available versions')
return parser.parse_args()