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 option allow positive exit code #161

Closed
wants to merge 1 commit into from
Closed

Add option allow positive exit code #161

wants to merge 1 commit into from

Conversation

hong4rc
Copy link
Contributor

@hong4rc hong4rc commented Jan 2, 2020

Fixed #86

I don't know to test with simple exit code so I don't modify test.js

Type: `boolean`\
Default: `true`

Reject for positive exit code
Copy link
Owner

Choose a reason for hiding this comment

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

The description needs to be a bit clearer about what it does.

The description should also include use-cases for this option.

@sindresorhus
Copy link
Owner

You need to update index.d.ts too.

@@ -102,6 +102,13 @@ We do not recommend using it on targets that are not URLs.

Especially useful when dealing with the [double-quotes on Windows](#double-quotes-on-windows) caveat.

##### rejectWithPositive
Copy link
Owner

Choose a reason for hiding this comment

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

I don't think this option name is clear enough.

Maybe allowNonzeroExitCode?

@sindresorhus
Copy link
Owner

// @TanninOne

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

Successfully merging this pull request may close these issues.

reject on return code > 0
2 participants