-
Notifications
You must be signed in to change notification settings - Fork 97
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
Difference in (-d) parsing between curlie and curl #11
Comments
Note: The issue only occurs when |
I guess it's due to this: https://github.com/rs/curlie/blob/master/main.go#L74 |
@rs Do you think the correct behavior here is to handle |
I don't remember why I added this exception. I would tend to restore the default curl behavior. |
@rs Would you be opposed to a pull request introducing a library like github.com/spf13/pflag to do the argument parsing/handling instead of rolling a custom one? That could help make argument parsing/usage easier and allow the addition of new args/opts in the future easier (plus some nice things like adding the curlie options to --help) |
The advantage of the current parsing is that it is a lazy parsing: it adapts to whatever arguments the installed curl version supports. |
Hmm I thought pflag had support for that but looking more into it it doesn't exactly. It has a |
Loving Curlie. Just got bit by this. |
It looks like curlie gets a little confused when passing
-d
:I'm assuming this is a bug where it's doing both JSON parsing and passing data?
The text was updated successfully, but these errors were encountered: