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

Add cURL's boolean options #270

Closed
wants to merge 1 commit into from

Conversation

verhovsky
Copy link
Member

by parsing the output of curl --help.

I ran into two issues working on this:

  1. curl --help isn't perfect, see Document that --tlspassword takes a password curl/curl#7378

  2. I don't think yargs lets you alias something as --no-some-option only as --some-option, but this isn't really an issue in our case, see Alias single letter to negated boolean option yargs/yargs-parser#406

by parsing the output of `curl --help`
@@ -1,5 +1,5 @@
const cookie = require('cookie')
const yargs = require('yargs')
const yargsParser = require('yargs-parser')
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Besides have a different API that chains method calls instead of passing an object, I don't understand what yargs actually does for us over plain yargs-parser, so I removed it.

@verhovsky verhovsky closed this Sep 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant