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

Unknown command should exit with non-zero code #641

Closed
bahmutov opened this issue Sep 13, 2017 · 3 comments
Closed

Unknown command should exit with non-zero code #641

bahmutov opened this issue Sep 13, 2017 · 3 comments
Assignees
Labels
cli type: user experience Improvements needed for UX
Milestone

Comments

@bahmutov
Copy link
Contributor

bahmutov commented Sep 13, 2017

Currently exits with 0, like nothing has happened

$ $(npm bin)/cypress foo
Unknown command "foo"

  Usage: cypress [options] [command]


  Commands:

    version          Prints Cypress version
    run [options]    Runs Cypress tests from the CLI without the GUI
    open [options]   Opens Cypress in the interactive GUI.
    install          Installs the Cypress executable matching this package's version
    verify           Verifies that Cypress is installed correctly and executable

  Options:

    -h, --help     output usage information
    -v, --version  Prints Cypress version

irinakous at Irinas-MacBook.local  ~/git/cypress-documentation on do-not-record-without-record-key
$ echo $?
0
@bahmutov bahmutov self-assigned this Sep 13, 2017
@bahmutov
Copy link
Contributor Author

@bahmutov
Copy link
Contributor Author

Tested cypress@1.0.3

$ $(npm bin)/cypress foo
Unknown command "foo"

  Usage: cypress [options] [command]


  Options:

    -v, --version  Prints Cypress version
    -h, --help     output usage information


  Commands:

    help             Shows CLI help and exits
    version          Prints Cypress version
    run [options]    Runs Cypress tests from the CLI without the GUI
    open [options]   Opens Cypress in the interactive GUI.
    install          Installs the Cypress executable matching this package's version
    verify           Verifies that Cypress is installed correctly and executable

@bahmutov bahmutov added this to the 1.0.3 milestone Oct 30, 2017
@bahmutov bahmutov added the type: user experience Improvements needed for UX label Oct 30, 2017
@bahmutov
Copy link
Contributor Author

Documented in changelog in cypress-io/cypress-documentation#184

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Dec 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cli type: user experience Improvements needed for UX
Projects
None yet
Development

No branches or pull requests

2 participants