Skip to content

-o requires space for argument #42

Open
@MithicSpirit

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions