diff options
Diffstat (limited to 'src/tru/tinyradutil.c')
| -rw-r--r-- | src/tru/tinyradutil.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/tru/tinyradutil.c b/src/tru/tinyradutil.c index 99c6def..1a853a8 100644 --- a/src/tru/tinyradutil.c +++ b/src/tru/tinyradutil.c | |||
| @@ -129,7 +129,7 @@ const TinyRadUtilWidget tru_widget_map[] = | |||
| 129 | { | 129 | { |
| 130 | .name = "url", | 130 | .name = "url", |
| 131 | .desc = "process TinyRad URL", | 131 | .desc = "process TinyRad URL", |
| 132 | .usage = NULL, | 132 | .usage = " [ url url ... url ]", |
| 133 | .aliases = (const char * const[]) { TRU_PREFIX"-url", NULL }, | 133 | .aliases = (const char * const[]) { TRU_PREFIX"-url", NULL }, |
| 134 | .func = &tru_widget_url | 134 | .func = &tru_widget_url |
| 135 | }, | 135 | }, |
| @@ -388,6 +388,10 @@ tru_getopt( | |||
| 388 | tinyrad_set_option(NULL, TRAD_OPT_DEBUG_LEVEL, &opt); | 388 | tinyrad_set_option(NULL, TRAD_OPT_DEBUG_LEVEL, &opt); |
| 389 | return(TRU_GETOPT_MATCHED); | 389 | return(TRU_GETOPT_MATCHED); |
| 390 | 390 | ||
| 391 | case 'H': | ||
| 392 | cnf->url = optarg; | ||
| 393 | return(TRU_GETOPT_MATCHED); | ||
| 394 | |||
| 391 | case 'I': | 395 | case 'I': |
| 392 | if (tinyrad_strsadd(&cnf->dict_paths, optarg) != TRAD_SUCCESS) | 396 | if (tinyrad_strsadd(&cnf->dict_paths, optarg) != TRAD_SUCCESS) |
| 393 | { | 397 | { |
| @@ -467,12 +471,13 @@ tru_usage_options( | |||
| 467 | s = short_opt; | 471 | s = short_opt; |
| 468 | 472 | ||
| 469 | printf("OPTIONS:\n"); | 473 | printf("OPTIONS:\n"); |
| 470 | if ((strchr(s, '4'))) printf(" -4 use IPv4 addresses\n"); | 474 | if ((strchr(s, '4'))) printf(" -4, --ipv4 use IPv4 addresses\n"); |
| 471 | if ((strchr(s, '6'))) printf(" -6 use IPv6 addresses\n"); | 475 | if ((strchr(s, '6'))) printf(" -6, --ipv6 use IPv6 addresses\n"); |
| 472 | if ((strchr(s, 'b'))) printf(" -b, --builtin-dict load built-in dictionary\n"); | 476 | if ((strchr(s, 'b'))) printf(" -b, --builtin-dict load built-in dictionary\n"); |
| 473 | if ((strchr(s, 'D'))) printf(" -D dictionary include dictionary\n"); | 477 | if ((strchr(s, 'D'))) printf(" -D dictionary include dictionary\n"); |
| 474 | if ((strchr(s, 'd'))) printf(" -d level, --debug=level print debug messages\n"); | 478 | if ((strchr(s, 'd'))) printf(" -d level, --debug=level print debug messages\n"); |
| 475 | if ((strchr(s, 'f'))) printf(" -f file, --file=file attribute list\n"); | 479 | if ((strchr(s, 'f'))) printf(" -f file, --file=file attribute list\n"); |
| 480 | if ((strchr(s, 'H'))) printf(" -H uri RADIUS URI\n"); | ||
| 476 | if ((strchr(s, 'h'))) printf(" -h, --help print this help and exit\n"); | 481 | if ((strchr(s, 'h'))) printf(" -h, --help print this help and exit\n"); |
| 477 | if ((strchr(s, 'I'))) printf(" -I path add path to dictionary search paths\n"); | 482 | if ((strchr(s, 'I'))) printf(" -I path add path to dictionary search paths\n"); |
| 478 | if ((strchr(s, 'q'))) printf(" -q, --quiet, --silent do not print messages\n"); | 483 | if ((strchr(s, 'q'))) printf(" -q, --quiet, --silent do not print messages\n"); |
