mirror of
https://github.com/QuasarApp/qca.git
synced 2025-04-27 20:14:32 +00:00
qcatool: prevent crash when only options on command line without any commands
This commit is contained in:
parent
2cdd6c4bd1
commit
2950458c77
@ -2860,7 +2860,7 @@ int main(int argc, char **argv)
|
||||
}
|
||||
|
||||
// help
|
||||
if(args[0] == "help" || args[0] == "--help" || args[0] == "-h")
|
||||
if(args.isEmpty() || args[0] == "help" || args[0] == "--help" || args[0] == "-h")
|
||||
{
|
||||
usage();
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user