Add argument handler

This commit is contained in:
Jeffrey Rongen 2024-05-01 11:35:09 +02:00
parent caad63555b
commit 3661aaa6e5

View file

@ -683,6 +683,9 @@ class DA_handler(metaclass=LogBase):
print(f"Dumped offset {hex(start)} with length {hex(length)} as {filename}.")
else:
print(f"Failed to dump offset {hex(start)} with length {hex(length)} as {filename}.")
elif cmd == "fs":
print(f'Mounting FUSE fs at: {args.mountpoint}...')
fs = FUSE(MtkDaFS(self, rw=args.rw), mountpoint=args.mountpoint, foreground=True, allow_other=True, nothreads=True)
elif cmd == "footer":
filename = args.filename
self.da_footer(filename=filename)