diff options
author | Anatol Pomozov <anatol.pomozov@gmail.com> | 2022-09-28 08:48:23 -0700 |
---|---|---|
committer | Anatol Pomozov <anatol.pomozov@gmail.com> | 2022-09-28 08:49:06 -0700 |
commit | caf45ddce0263dea6ffda1bc9793f3b848e4406b (patch) | |
tree | 6140e707a46b52cd8226132fb806aad3247e84fe /partition_tools | |
parent | 05a08b61b838f66b83e38e42a3584cfab4d5186a (diff) | |
download | extras-caf45ddce0263dea6ffda1bc9793f3b848e4406b.tar.gz |
Use proper arg key for --help option
Running `lpmake --help` leads to a segfault. It happens because invalid key is used for --help option.
Test: build lpmake and make sure --help works
Issue: https://github.com/nmeum/android-tools/issues/73
Change-Id: I8a2c56b6f2c9dc0a3f254e85469ce10d09c02bc7
Diffstat (limited to 'partition_tools')
-rw-r--r-- | partition_tools/lpmake.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/partition_tools/lpmake.cc b/partition_tools/lpmake.cc index e6c4e530..76372daf 100644 --- a/partition_tools/lpmake.cc +++ b/partition_tools/lpmake.cc @@ -182,7 +182,7 @@ int main(int argc, char* argv[]) { { "metadata-slots", required_argument, nullptr, (int)Option::kMetadataSlots }, { "partition", required_argument, nullptr, (int)Option::kPartition }, { "output", required_argument, nullptr, (int)Option::kOutput }, - { "help", no_argument, nullptr, (int)Option::kOutput }, + { "help", no_argument, nullptr, (int)Option::kHelp }, { "alignment-offset", required_argument, nullptr, (int)Option::kAlignmentOffset }, { "alignment", required_argument, nullptr, (int)Option::kAlignment }, { "sparse", no_argument, nullptr, (int)Option::kSparse }, |