Fix commandline parsing bug
parent
fd3218a545
commit
7ba18b411c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue