Skip to content

Commit

Permalink
Add -h option
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilia Platone committed Jun 8, 2023
1 parent b485fb5 commit 1ffc540
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vlbi_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ int main(int argc, char** argv)
dsp_set_app_name(argv[0]);
dsp_set_stdout(stderr);
dsp_set_stderr(stderr);
while ((opt = getopt(argc, argv, "t:f:o:v")) != -1)
while ((opt = getopt(argc, argv, "t:f:o:vh")) != -1)
{
switch (opt)
{
Expand All @@ -686,6 +686,7 @@ int main(int argc, char** argv)
case 'v':
dsp_set_debug_level(dsp_get_debug_level()+1);
break;
case 'h':
default:
perr("Usage: %s [-t max_threads] [-f obs_file] [-o obs_file] [-v[v[v]]]\n", argv[0]);
exit(EXIT_FAILURE);
Expand Down

0 comments on commit 1ffc540

Please sign in to comment.