Repository: cypress-io/cypress
File: cli/__snapshots__/cli_spec.js (JavaScript)

Code before:
exports['cli help command shows help 1'] = `

  command: bin/cypress help
  code: 0
  failed: false
  killed: false
  signal: null
  timedOut: false

  stdout:
  -------
  Usage: cypress <command> [options]

  Options:
    -v, --version      prints Cypress version
    -h, --help         display help for command

  Commands:
    help               Shows CLI help and exits
    version            prints Cypress version
    open [options]     Opens Cypress in the interactive GUI.
    run [options]      Runs Cypress tests from the CLI without the GUI
    open-ct [options]  Opens Cypress component testing interactive mode.
                       Deprecated: use "open --ct"
    run-ct [options]   Runs all Cypress component testing suites. Deprecated:
                       use "run --ct"
    install [options]  Installs the Cypress executable matching this package's
                       version
    verify [options]   Verifies that Cypress is installed correctly and
                       executable
    cache [options]    Manages the Cypress binary cache
    info [options]     Prints Cypress and system information
  -------
  stderr:
  -------
  
  -------
  
`

exports['cli help command shows help for -h 1'] = `

  command: bin/cypress -h
  code: 0
  failed: false
  killed: false
  signal: null
  timedOut: false

  stdout:
  -------

Review comment (suggestion):
Looking at https://github.com/cypress-io/cypress-documentation/pull/4140, it looks like `--component` is consistently suggested in the docs.

Looking at https://github.com/cypress-io/cypress/pull/18399, looks like both `--component` and `--ct` are supported. Should we provide both flap options in the deprecation suggestion? If not, I'd lean towards matching the doc suggestions of `--component`

Code after:
exports['cli help command shows help 1'] = `

  command: bin/cypress help
  code: 0
  failed: false
  killed: false
  signal: null
  timedOut: false

  stdout:
  -------
  Usage: cypress <command> [options]

  Options:
    -v, --version      prints Cypress version
    -h, --help         display help for command

  Commands:
    help               Shows CLI help and exits
    version            prints Cypress version
    open [options]     Opens Cypress in the interactive GUI.
    run [options]      Runs Cypress tests from the CLI without the GUI
    open-ct [options]  Opens Cypress component testing interactive mode.
                       Deprecated: use "open --component"
    run-ct [options]   Runs all Cypress component testing suites. Deprecated:
                       use "run --component"
    install [options]  Installs the Cypress executable matching this package's
                       version
    verify [options]   Verifies that Cypress is installed correctly and
                       executable
    cache [options]    Manages the Cypress binary cache
    info [options]     Prints Cypress and system information
  -------
  stderr:
  -------
  
  -------
  
`

exports['cli help command shows help for -h 1'] = `

  command: bin/cypress -h
  code: 0
  failed: false
  killed: false
  signal: null
  timedOut: false

  stdout:
  -------