| 1444 | |
| 1445 | |
| 1446 | void usage_amp(FILE *fout) |
| 1447 | { |
| 1448 | int i; |
| 1449 | |
| 1450 | fprintf(fout, "Commands (some may not be available for this amplifier):\n"); |
| 1451 | |
| 1452 | for (i = 0; test_list[i].cmd != 0; i++) |
| 1453 | { |
| 1454 | int nbspaces; |
| 1455 | fprintf(fout, |
| 1456 | "%c: %-12s(", |
| 1457 | isprint(test_list[i].cmd) ? test_list[i].cmd : '?', |
| 1458 | test_list[i].name); |
| 1459 | |
| 1460 | nbspaces = 16; |
| 1461 | |
| 1462 | if (test_list[i].arg1 && (test_list[i].flags & ARG_IN1)) |
| 1463 | { |
| 1464 | nbspaces -= fprintf(fout, "%s", test_list[i].arg1); |
| 1465 | } |
| 1466 | |
| 1467 | if (test_list[i].arg2 && (test_list[i].flags & ARG_IN2)) |
| 1468 | { |
| 1469 | nbspaces -= fprintf(fout, ", %s", test_list[i].arg2); |
| 1470 | } |
| 1471 | |
| 1472 | if (test_list[i].arg3 && (test_list[i].flags & ARG_IN3)) |
| 1473 | { |
| 1474 | nbspaces -= fprintf(fout, ", %s", test_list[i].arg3); |
| 1475 | } |
| 1476 | |
| 1477 | if (test_list[i].arg4 && (test_list[i].flags & ARG_IN4)) |
| 1478 | { |
| 1479 | nbspaces -= fprintf(fout, ", %s", test_list[i].arg4); |
| 1480 | } |
| 1481 | |
| 1482 | rig_debug(RIG_DEBUG_VERBOSE, "%s: nbspace left=%d\n", __func__, nbspaces); |
| 1483 | |
| 1484 | fprintf(fout, ")\n"); |
| 1485 | } |
| 1486 | |
| 1487 | fprintf(fout, |
| 1488 | "\n\nIn interactive mode prefix long command names with '\\', e.g. '\\dump_state'\n\n" |
| 1489 | "The special command '-' is used to read further commands from standard input\n" |
| 1490 | "Commands and arguments read from standard input must be white space separated,\n" |
| 1491 | "comments are allowed, comments start with the # character and continue to the\n" |
| 1492 | "end of the line.\n"); |
| 1493 | |
| 1494 | fprintf(fout, "\nReport bugs to <hamlib-developer@lists.sourceforge.net>.\n"); |
| 1495 | } |
| 1496 | |
| 1497 | |
| 1498 | int print_conf_list(const struct confparams *cfp, rig_ptr_t data) |
no test coverage detected