--version should show version of mqttExplorer

This commit is contained in:
2020-07-19 15:07:03 +02:00
parent 17d440e1e2
commit 7618feb0ff
2 changed files with 2 additions and 2 deletions

View File

@@ -3,6 +3,6 @@
#define MQTTEXPLORER_VERSION_MAJOR 1
#define MQTTEXPLORER_VERSION_MINOR 0
#define MQTTEXPLORER_VERSION_PATCH 0
#define MQTTEXPLORER_VERSION_PATCH 1
#endif // VERSION_H

View File

@@ -7,7 +7,7 @@
int main(int argc, const char* argv[]) {
if (argc >= 2) {
if (strcmp(argv[1], "-v") == 0 || strcmp(argv[1], "--version")) {
if (strcmp(argv[1], "-v") == 0 || strcmp(argv[1], "--version") == 0) {
std::cout << "Version: " << MQTTEXPLORER_VERSION_MAJOR << "." << MQTTEXPLORER_VERSION_MINOR << "." << MQTTEXPLORER_VERSION_PATCH << std::endl;
return 0;
}