Skip to content

Cypress CLI should treat -h --help and help as valid command #645

@bahmutov

Description

@bahmutov

@bahmutov commented on Wed Sep 13 2017

Currently it treats it as unknown command

$ bin/cypress help
Unknown command "help"

  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

$ bin/cypress -h
Unknown command "-h"

  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

$ bin/cypress --help
Unknown command "--help"

  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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions