Fix commandline parsing bug
parent
fd3218a545
commit
7ba18b411c
|
|
@ -1556,12 +1556,13 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
ntfs_impl = NTFSImplementation.Kernel
|
ntfs_impl = NTFSImplementation.Kernel
|
||||||
|
|
||||||
if args.ntfs_type == "kernel":
|
if not args.ntfs_type is None:
|
||||||
ntfs_impl = NTFSImplementation.Kernel
|
if args.ntfs_type == "kernel":
|
||||||
elif args.ntfs_type == "fuse":
|
ntfs_impl = NTFSImplementation.Kernel
|
||||||
ntfs_impl = NTFSImplementation.NTFS3G
|
elif args.ntfs_type == "fuse":
|
||||||
else:
|
ntfs_impl = NTFSImplementation.NTFS3G
|
||||||
raise ValueError("Unknown NTFS implementation: {args.ntfs_type}")
|
else:
|
||||||
|
raise ValueError(f"Unknown NTFS implementation: {args.ntfs_type}")
|
||||||
|
|
||||||
|
|
||||||
og_git = OpengnsysGitLibrary(ntfs_implementation = ntfs_impl)
|
og_git = OpengnsysGitLibrary(ntfs_implementation = ntfs_impl)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue