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

fix: Exit with code 1 when nyc doesn't know what to do. #1070

Merged
merged 1 commit into from Apr 17, 2019

Commits on Apr 17, 2019

  1. fix: Exit with code 1 when nyc doesn't know what to do.

    When nyc is not told to do anything this is an error.  We already
    printed the help message to stderr, now we exit with code 1 to indicate
    that nyc exited without doing anything.
    
    Add a test to cover this edge case and verify that both `nyc` and `nyc
    --help` produce output as expected to stdout and stderr, exit with the
    proper code.
    coreyfarrell committed Apr 17, 2019
    Copy the full SHA
    6599f11 View commit details
    Browse the repository at this point in the history