From 80f8ec07e36bdb038dd6cc381538e0f89b69cfab Mon Sep 17 00:00:00 2001 From: Maurice ONeal Date: Wed, 18 Jan 2023 21:55:17 -0500 Subject: [PATCH] v1.6.t2 The app was still cutting out last command line arg of my test setup. Later found out it was the run script limiting the command line arg count to 3. I extended it out to 8 but I'll need to find a better option to make it limitless. --- install.sh | 2 +- src/common.cpp | 2 +- src/common.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index ac8de0e..23498fe 100644 --- a/install.sh +++ b/install.sh @@ -6,7 +6,7 @@ cp ./.build-mow/mow /opt/mow/bin printf "#!/bin/sh\n" > /opt/mow/run printf "export OPENCV_LOG_LEVEL=DEBUG\n" >> /opt/mow/run printf "export OPENCV_VIDEOIO_DEBUG=1\n" >> /opt/mow/run -printf "/opt/mow/bin \$1 \$2 \$3\n" >> /opt/mow/run +printf "/opt/mow/bin \$1 \$2 \$3 \$4 \$5 \$6 \$7 \$8\n" >> /opt/mow/run chmod +x /opt/mow/run chmod +x /opt/mow/bin rm /usr/bin/mow diff --git a/src/common.cpp b/src/common.cpp index 39df460..8291956 100644 --- a/src/common.cpp +++ b/src/common.cpp @@ -288,7 +288,7 @@ vector parseForList(const string &arg, int argc, char** argv, bool argOn auto argCount = 0; auto ret = vector(); - for (auto i = 0; i < argc; ++i) + for (auto i = 1; i < argc; ++i) { auto argInParams = string(argv[i]); diff --git a/src/common.h b/src/common.h index 5c74e7f..c375b5f 100644 --- a/src/common.h +++ b/src/common.h @@ -35,7 +35,7 @@ using namespace cv; using namespace std; using namespace std::filesystem; -#define APP_VER "1.6.t1" +#define APP_VER "1.6.t2" #define APP_NAME "Motion Watch" struct shared_t