Fix commandline parsing bug

ticket-769
Vadim vtroshchinskiy 2024-09-19 19:47:59 +02:00
parent fd3218a545
commit 7ba18b411c
1 changed files with 7 additions and 6 deletions

View File

@ -1556,12 +1556,13 @@ if __name__ == '__main__':
ntfs_impl = NTFSImplementation.Kernel
if args.ntfs_type == "kernel":
ntfs_impl = NTFSImplementation.Kernel
elif args.ntfs_type == "fuse":
ntfs_impl = NTFSImplementation.NTFS3G
else:
raise ValueError("Unknown NTFS implementation: {args.ntfs_type}")
if not args.ntfs_type is None:
if args.ntfs_type == "kernel":
ntfs_impl = NTFSImplementation.Kernel
elif args.ntfs_type == "fuse":
ntfs_impl = NTFSImplementation.NTFS3G
else:
raise ValueError(f"Unknown NTFS implementation: {args.ntfs_type}")
og_git = OpengnsysGitLibrary(ntfs_implementation = ntfs_impl)