Skip to content

Commit

Permalink
Fixed not generating arg tree resulting in wrong help output
Browse files Browse the repository at this point in the history
  • Loading branch information
YuzukiTsuru committed Jun 22, 2022
1 parent 0888e6f commit d6a1606
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/OpenixCard/OpenixCard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@ OpenixCard::OpenixCard(int argc, char **argv) {
}());
show_logo();

if (argc < 2) {
std::cout << parser; // show help
return;
}

parser.add_argument("-u", "--unpack")
.help("Unpack Allwinner Image to folder")
.default_value(false)
Expand All @@ -63,6 +58,12 @@ OpenixCard::OpenixCard(int argc, char **argv) {
.required()
.remaining();


if (argc < 2) {
std::cout << parser; // show help
return;
}

try {
// parser args
parser.parse_args(argc, argv);
Expand Down

0 comments on commit d6a1606

Please sign in to comment.