From eb3ba17ece98ab245d1fc3492b13460f7ad14247 Mon Sep 17 00:00:00 2001 From: "Giso Grimm (thetys)" Date: Tue, 14 Jan 2025 17:15:16 +0100 Subject: [PATCH] correct program options --- apps/src/tascar_genrandlsl.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/apps/src/tascar_genrandlsl.cc b/apps/src/tascar_genrandlsl.cc index 7747e3a9..60d9f081 100644 --- a/apps/src/tascar_genrandlsl.cc +++ b/apps/src/tascar_genrandlsl.cc @@ -45,10 +45,12 @@ int main(int argc, char** argv) signal(SIGABRT, &sighandler); signal(SIGTERM, &sighandler); signal(SIGINT, &sighandler); - const char* options = "ha:np:t"; - struct option long_options[] = {{"help", 0, 0, 'h'}, {"add", 1, 0, 'a'}, - {"noauto", 0, 0, 'n'}, {"port", 1, 0, 'p'}, - {"timestamp", 0, 0, 't'}, {0, 0, 0, 0}}; + const char* options = "hn:c:r:"; + struct option long_options[] = {{"help", 0, 0, 'h'}, + {"channels", 1, 0, 'c'}, + {"name", 1, 0, 'n'}, + {"rate", 1, 0, 'r'}, + {0, 0, 0, 0}}; int opt(0); int option_index(0); std::string name = "tascar_lsl";