cmdline/docs: add a required 'multi' keyword for each option

The keyword specifies how option works when specified multiple times:

 - single: the last provided value replaces the earlier ones
 - append: it supports being provided multiple times
 - boolean: on/off values
 - mutex: flag-like option that disable anoter flag

The 'gen.pl' script then outputs the proper and unified language for
each option's multi-use behavior in the generated man page.

The multi: header is requires in each .d file and will cause build error
if missing or set to an unknown value.

Closes #9759
This commit is contained in:
Daniel Stenberg 2022-10-18 10:39:43 +02:00
parent 40f3504401
commit ef305de95c
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
250 changed files with 309 additions and 165 deletions

View file

@ -7,6 +7,7 @@ Protocols: HTTP
Category: auth
Example: -u name:password --basic $URL
Added: 7.10.6
Multi: mutex
---
Tells curl to use HTTP Basic authentication with the remote host. This is the
default and this option is usually pointless, unless you use it to override a