mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-02-04 13:54:43 +01:00
bugfix
This commit is contained in:
parent
9999693c0d
commit
8a603c5420
@ -24,6 +24,7 @@ public:
|
|||||||
alias = al;
|
alias = al;
|
||||||
description = desc;
|
description = desc;
|
||||||
type = CLI_ARG_TYPE_VOID;
|
type = CLI_ARG_TYPE_VOID;
|
||||||
|
bval = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
CLIArg(char al, std::string desc, bool b) {
|
CLIArg(char al, std::string desc, bool b) {
|
||||||
|
@ -66,10 +66,10 @@ int sdrpp_main(int argc, char* argv[]) {
|
|||||||
|
|
||||||
// Define command line options and parse arguments
|
// Define command line options and parse arguments
|
||||||
core::args.defineAll();
|
core::args.defineAll();
|
||||||
core::args.parse(argc, argv);
|
if (core::args.parse(argc, argv) < 0) { return -1; }
|
||||||
|
|
||||||
// Show help and exit if requested
|
// Show help and exit if requested
|
||||||
if ((bool)core::args["help"]) {
|
if (core::args["help"].b()) {
|
||||||
core::args.showHelp();
|
core::args.showHelp();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user