spulec / uncurl

A library to convert curl requests to python-requests.
Apache License 2.0
607 stars 94 forks source link

argument -b/--data-binary: expected one argument #29

Open AdrianVollmer opened 4 years ago

AdrianVollmer commented 4 years ago

This happens when the argument of -b starts with two dashes. Example:

$ echo "curl url -b '--'" | uncurl
usage: uncurl [-h] [-d DATA] [-b DATA_BINARY] [-X X] [-H HEADER]
              [--compressed] [--insecure]
              command url
uncurl: error: argument -b/--data-binary: expected one argument