Skip to content

Commit

Permalink
Finish implementation of -v flag in ngamsCClient
Browse files Browse the repository at this point in the history
For some reason the -v flag of the ngamsCClient was not yet implemented,
even though it was just two small lines again from being done. The fact
that this wasn't implemented is, partly, why the error in the logging
functions of the ngams C library took this long to find out.

Signed-off-by: Rodrigo Tobar <rtobar@icrar.org>
  • Loading branch information
rtobar committed Feb 3, 2021
1 parent 392aff7 commit 9c2441e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ngamsCClient/ngamsCClient.c
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,11 @@ int main (int argc, char* argv[])
timeOut = atof(argv[i]);
}
else if (strcmp(tmpPar, "-V") == 0)
printf("\nNOTE: Command line option -v is not yet implemented!\n");
{
if (++i == argc) goto correctUsage;
if (*argv[i] == '-') goto correctUsage;
ngamsSetVerboseLevel(atoi(argv[i]));
}
else if (strcmp(tmpPar, "-VERSION") == 0)
{
printf("%s\n", ngamsVersion());
Expand Down

0 comments on commit 9c2441e

Please sign in to comment.