Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreRouma committed Feb 24, 2022
1 parent 9999693 commit 8a603c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions core/src/command_args.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class CLIArg {
alias = al;
description = desc;
type = CLI_ARG_TYPE_VOID;
bval = false;
}

CLIArg(char al, std::string desc, bool b) {
Expand Down
4 changes: 2 additions & 2 deletions core/src/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,10 @@ int sdrpp_main(int argc, char* argv[]) {

// Define command line options and parse arguments
core::args.defineAll();
core::args.parse(argc, argv);
if (core::args.parse(argc, argv) < 0) { return -1; }

// Show help and exit if requested
if ((bool)core::args["help"]) {
if (core::args["help"].b()) {
core::args.showHelp();
return 0;
}
Expand Down

0 comments on commit 8a603c5

Please sign in to comment.