mirror of
https://github.com/curl/curl.git
synced 2026-04-13 00:31:41 +08:00
If the long option name ends with an equals sign (`=`), the argument is the text following on its right side. This makes the command line parser accept this common style in addition to the existing way to accept option arguments more similar to how other command line tools do. Example: `curl --user-agent=curl-2000 https://example.com/` Change a few existing tests to use this syntax: 206, 1333, 1335, 1442 Closes #17789
36 lines
410 B
Plaintext
36 lines
410 B
Plaintext
<testcase>
|
|
<info>
|
|
<keywords>
|
|
--write-out
|
|
FILE
|
|
</keywords>
|
|
</info>
|
|
# Server-side
|
|
<reply>
|
|
</reply>
|
|
|
|
# Client-side
|
|
<client>
|
|
<server>
|
|
file
|
|
</server>
|
|
|
|
<name>
|
|
Check --write-out with trailing \
|
|
</name>
|
|
<command>
|
|
file://localhost/%FILE_PWD/%LOGDIR/non-existent-file.txt --write-out='\'
|
|
</command>
|
|
</client>
|
|
|
|
# Verify data
|
|
<verify>
|
|
<errorcode>
|
|
37
|
|
</errorcode>
|
|
<stdout nonewline="yes">
|
|
\
|
|
</stdout>
|
|
</verify>
|
|
</testcase>
|