Help: (short text for the --help output for this option)
Long: (long form name, without dashes)
Magic: (description of "magic" options)
- Multi: single/append/boolean/mutex (if used more than once)
+ Multi: single/append/boolean/mutex/custom (if used more than once)
Mutexed: (space separated list of options this overrides, no dashes)
Protocols: (space separated list for which protocols this option works)
Requires: (space separated list of features this requires, no dashes)
print STDERR "ERROR: no 'Long:' in $f\n";
return 1;
}
- if($multi !~ /(single|append|boolean|mutex)/) {
- print STDERR "ERROR: bad 'Multi:' in $f\n";
- return 1;
- }
if(!$category) {
print STDERR "ERROR: no 'Category:' in $f\n";
return 2;
push @extra,
"\nProviding --$long multiple times has no extra effect.\n";
}
+ elsif($multi eq "custom") {
+ ; # left for the text to describe
+ }
+ else {
+ print STDERR "$f:$line:1:ERROR: unrecognized Multi: '$multi'\n";
+ return 2;
+ }
printdesc(@extra);
$ret += single($f, 0);
}
- header("page-footer");
+ if(!$ret) {
+ header("page-footer");
+ }
exit $ret if($ret);
}
Example: --help all
Added: 4.0
See-also: verbose
-Multi: boolean
+Multi: custom
---
Usage help. This lists all commands of the <category>.
If no arg was provided, curl will display the most important
Example: --manual
Added: 5.2
See-also: verbose libcurl trace
-Multi: boolean
+Multi: custom
---
Manual. Display the huge help text.
Example: --version
Added: 4.0
See-also: help manual
-Multi: boolean
+Multi: custom
---
Displays information about curl and the libcurl version it uses.