Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-o requires space for argument #42

Open
MithicSpirit opened this issue Jan 17, 2025 · 1 comment
Open

-o requires space for argument #42

MithicSpirit opened this issue Jan 17, 2025 · 1 comment

Comments

@MithicSpirit
Copy link

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}"
            ;;
@samueloph
Copy link
Member

Flagging this so I can discuss it with @sergiodj during FOSDEM this weekend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants