You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
following the #316 and this article
I was exploring the ability of hurlfmt to convert a given curl command to hurl.
The curl command in input has a -v option and that causes hurlfmt to fail.
Steps to reproduce
create a file with this curl command: curl -v https://nekos.best/api/v2/hug?amount=2
run the command: cat test.curl | hurlfmt --in curl
Output:
bash-5.2$ cat test.curl | hurlfmt --in curl
error: Can not parse curl command at line 1: error: unexpected argument '-v' found
tip: to pass '-v' as a value, use '-- -v'
Usage: curl [OPTIONS] [url_param]
For more information, try '--help'.
What is the expected correct behavior?
I expect the command to not fail and generate a valid hurl output as without -v option in the input file.
What is the current bug behavior?
following the #316 and this article
I was exploring the ability of
hurlfmt
to convert a givencurl
command tohurl
.The
curl
command in input has a-v
option and that causeshurlfmt
to fail.Steps to reproduce
curl
command:curl -v https://nekos.best/api/v2/hug?amount=2
cat test.curl | hurlfmt --in curl
Output:
What is the expected correct behavior?
I expect the command to not fail and generate a valid
hurl
output as without-v
option in the input file.Execution context
hurl --version
):The text was updated successfully, but these errors were encountered: