INNER CODE UNIT · Python

main

AUNaseef/protonup · protonup/cli.py:26

def main():
    """Start here"""
    args = parse_arguments()

    if args.dir:
        print(f"Install directory set to '{install_directory(args.dir)}'")

    if args.tag or not (args.remove or args.list or args.dir or args.releases):
        get_proton(version=args.tag, yes=args.yes, dl_only=args.download,
                   output=args.output)
    if args.remove:
        if args.yes or input(f"Confirm remove {args.remove}? (Y/n): ") not in ['y', 'Y', '']:
            return
        if not remove_proton(version=args.remove):
            print(f'Proton-{args.remove} not installed')

    if args.list:
        _install_directory = install_directory()

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…