From a2898e577f0dba43a8140cd38472ef222c0c57f7 Mon Sep 17 00:00:00 2001 From: Hykilpikonna Date: Sat, 28 May 2022 04:44:22 -0400 Subject: [PATCH] [+] Default efi path to ./ --- ocpm/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ocpm/main.py b/ocpm/main.py index 550e489..10e1234 100755 --- a/ocpm/main.py +++ b/ocpm/main.py @@ -141,8 +141,8 @@ def download_updates(efi: Path, updates: list[tuple[Kext, Release]]): def run(): parser = argparse.ArgumentParser(description='OpenCore Package Manager by HyDEV') - parser.add_argument('efi_path', help='EFI Directory Path') parser.add_argument('cmd', help='Command (update)') + parser.add_argument('--efi', help='EFI Directory Path', default='.') parser.add_argument('--pre', action='store_true', help='Use pre-release') parser.add_argument('-y', action='store_true', help='Say yes') @@ -154,7 +154,7 @@ def run(): return # Normalize EFI Path - efi = Path(args.efi_path) + efi = Path(args.efi) if (efi / 'EFI').is_dir(): efi = efi / 'EFI' assert (efi / 'OC').is_dir(), 'Open Core directory (OC) not found.'