mirror of
https://github.com/Lekensteyn/lglaf.git
synced 2025-03-31 07:10:34 -04:00
extract-partitions.py: documentation update
This commit is contained in:
parent
a8145a4a75
commit
85168bc5de
1 changed files with 7 additions and 1 deletions
|
@ -1,4 +1,10 @@
|
|||
#!/usr/bin/env python
|
||||
#
|
||||
# Dump partitions to file.
|
||||
#
|
||||
# Copyright (C) 2015 Peter Wu <peter@lekensteyn.nl>
|
||||
# Licensed under the MIT license <http://opensource.org/licenses/MIT>.
|
||||
|
||||
from collections import OrderedDict
|
||||
from contextlib import closing, contextmanager
|
||||
import argparse, logging, os, struct
|
||||
|
@ -43,7 +49,7 @@ def laf_read(comm, fd_num, offset, size):
|
|||
parser = argparse.ArgumentParser()
|
||||
parser.add_argument("-d", "--outdir", default=".",
|
||||
help="Output directory for disk images.")
|
||||
# Do not dumb partitions larger than this size
|
||||
# Do not dump partitions larger than this size
|
||||
# (userdata 11728 MiB, system 2064 MiB, cache 608 MiB, cust 256 MiB)
|
||||
parser.add_argument("--max-size", type=int, default=65536,
|
||||
help="Maximum partition size to dump (in KiB)")
|
||||
|
|
Loading…
Add table
Reference in a new issue