Commit c285c165 authored by Éric Thiébaut's avatar Éric Thiébaut
Browse files

More descriptive help

parent 1bad019d
......@@ -128,8 +128,11 @@ int main(
if (strcmp(argv[iarg], "-h") == 0
|| strcmp(argv[iarg], "-help") == 0
|| strcmp(argv[iarg], "--help") == 0) {
printf("\n");
printf(usage, progname);
printf("\n");
printf("Launch a server for an Andor camera.\n");
printf("\n");
printf("Arguments:\n");
printf(" DEV Camera device number.\n");
printf(" NAME Name of server (may have a %%d to "
......@@ -146,6 +149,7 @@ int main(
printf(" -debug Debug mode [%s].\n",
(debug ? "true" : "false"));
printf(" -h, -help, --help Print this help.\n");
printf("\n");
return EXIT_SUCCESS;
}
if (strcmp(argv[iarg], "-nbufs") == 0) {
......@@ -226,7 +230,7 @@ int main(
tao_camera_config cfg;
if (tao_camera_update_configuration(dev) != TAO_OK ||
tao_camera_get_configuration(dev, &cfg) != TAO_OK) {
fprintf(stderr, "%s: failed to retrieve camera configuration\n",
fprintf(stderr, "%s: Failed to retrieve camera configuration\n",
progname);
goto error;
}
......
......@@ -90,8 +90,12 @@ int main(
if (strcmp(argv[iarg], "-h") == 0
|| strcmp(argv[iarg], "-help") == 0
|| strcmp(argv[iarg], "--help") == 0) {
printf("\n");
printf(usage, progname);
printf("\n");
printf("Launch a server for a camera connected to an "
"ActiveSilicon \"Phoenix\" framegrabber.\n");
printf("\n");
printf("Arguments:\n");
printf(" BOARD:CHANNEL Board and channel numbers (can be "
"`auto`) [auto:auto].\n");
......@@ -107,6 +111,7 @@ int main(
printf(" -debug Debug mode [%s].\n",
(debug ? "true" : "false"));
printf(" -h, -help, --help Print this help.\n");
printf("\n");
return EXIT_SUCCESS;
}
if (strcmp(argv[iarg], "-nbufs") == 0) {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment