Open
Description
curl -ofoo.html example.com
correctly outputs to foo.html
, but wcurl -ofoo.html example.com
fails with Unknown option: '-ofoo.html'.
. This seems to be because there is no handler for -o*
(and -O*
, though this behaves differently than from curl) in the argument parser. I suspect adding this (adapted from --output=
) would work, and I can open a PR for it if desired.
-o*|-O*)
opt=$(printf "%s\n" "${1}" | sed 's/^-[oO]//')
HAS_USER_SET_OUTPUT="true"
OUTPUT_PATH="${opt}"
;;
Metadata
Assignees
Labels
No labels