mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 18:57:19 +02:00
partition_table: Fix parttool.py crashes when retrieving partition info
Closes: IDFGH-3279 Closes: https://github.com/espressif/esp-idf/issues/5271
This commit is contained in:
@ -253,7 +253,8 @@ def main():
|
|||||||
|
|
||||||
print_partition_info_subparser = subparsers.add_parser("get_partition_info", help="get partition information")
|
print_partition_info_subparser = subparsers.add_parser("get_partition_info", help="get partition information")
|
||||||
print_partition_info_subparser_info_type = print_partition_info_subparser.add_mutually_exclusive_group()
|
print_partition_info_subparser_info_type = print_partition_info_subparser.add_mutually_exclusive_group()
|
||||||
print_partition_info_subparser_info_type.add_argument("--info", help="type of partition information to get", nargs="+")
|
print_partition_info_subparser_info_type.add_argument("--info", help="type of partition information to get",
|
||||||
|
choices=["offset", "size"], default=["offset", "size"], nargs="+")
|
||||||
print_partition_info_subparser_info_type.add_argument("--table", help="dump the partition table to a file")
|
print_partition_info_subparser_info_type.add_argument("--table", help="dump the partition table to a file")
|
||||||
|
|
||||||
generate_blank_subparser = subparsers.add_parser("generate_blank_partition_file", help="generate a blank (all 0xFF) partition file of \
|
generate_blank_subparser = subparsers.add_parser("generate_blank_partition_file", help="generate a blank (all 0xFF) partition file of \
|
||||||
|
Reference in New Issue
Block a user