|
47 | 47 |
|
48 | 48 | use POSIX qw(strftime);
|
49 | 49 | my $date = strftime "%B %d %Y", localtime;
|
| 50 | +my $year = strftime "%Y", localtime; |
50 | 51 | my $version = "unknown";
|
51 | 52 |
|
52 | 53 | open(INC, "<../../include/curl/curlver.h");
|
@@ -418,6 +419,42 @@ sub header {
|
418 | 419 | }
|
419 | 420 |
|
420 | 421 | sub listhelp {
|
| 422 | + print <<HEAD |
| 423 | +/*************************************************************************** |
| 424 | + * _ _ ____ _ |
| 425 | + * Project ___| | | | _ \\| | |
| 426 | + * / __| | | | |_) | | |
| 427 | + * | (__| |_| | _ <| |___ |
| 428 | + * \\___|\\___/|_| \\_\\_____| |
| 429 | + * |
| 430 | + * Copyright (C) 1998 - $year, Daniel Stenberg, <daniel@haxx.se>, et al. |
| 431 | + * |
| 432 | + * This software is licensed as described in the file COPYING, which |
| 433 | + * you should have received as part of this distribution. The terms |
| 434 | + * are also available at https://curl.se/docs/copyright.html. |
| 435 | + * |
| 436 | + * You may opt to use, copy, modify, merge, publish, distribute and/or sell |
| 437 | + * copies of the Software, and permit persons to whom the Software is |
| 438 | + * furnished to do so, under the terms of the COPYING file. |
| 439 | + * |
| 440 | + * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY |
| 441 | + * KIND, either express or implied. |
| 442 | + * |
| 443 | + ***************************************************************************/ |
| 444 | +#include "tool_setup.h" |
| 445 | +#include "tool_help.h" |
| 446 | +
|
| 447 | +/* |
| 448 | + * DO NOT edit tool_listhelp.c manually. |
| 449 | + * This source file is generated with the following command: |
| 450 | +
|
| 451 | + cd \$srcroot/docs/cmdline-opts |
| 452 | + ./gen.pl listhelp *.d > \$srcroot/src/tool_listhelp.c |
| 453 | + */ |
| 454 | +
|
| 455 | +const struct helptxt helptext[] = { |
| 456 | +HEAD |
| 457 | + ; |
421 | 458 | foreach my $f (sort keys %helplong) {
|
422 | 459 | my $long = $f;
|
423 | 460 | my $short = $optlong{$long};
|
@@ -455,6 +492,11 @@ sub listhelp {
|
455 | 492 | }
|
456 | 493 | print $line;
|
457 | 494 | }
|
| 495 | + print <<FOOT |
| 496 | + { NULL, NULL, CURLHELP_HIDDEN } |
| 497 | +}; |
| 498 | +FOOT |
| 499 | + ; |
458 | 500 | }
|
459 | 501 |
|
460 | 502 | sub listcats {
|
|
0 commit comments