curl-curl/tests/data/test1442
Daniel Stenberg 9f9fecc724
tool_getparam: add support for --longopt=value
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
2025-07-27 18:29:01 +02:00

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>