Skip to content

Commit

Permalink
correct program options
Browse files Browse the repository at this point in the history
  • Loading branch information
gisogrimm committed Jan 14, 2025
1 parent 19ac6a0 commit eb3ba17
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions apps/src/tascar_genrandlsl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit eb3ba17

Please sign in to comment.