cypress-io / cypress

Fast, easy and reliable testing for anything that runs in a browser.
https://cypress.io
MIT License
47.1k stars 3.19k forks source link

Wrong grammar in help for CLI `cypress open --global` #30531

Closed MikeMcC399 closed 3 weeks ago

MikeMcC399 commented 3 weeks ago

Current behavior

The help text for the CLI option --global displays as

force Cypress into global mode as if its globally installed

Desired behavior

The text should be grammatically correct, for instance by writing

force Cypress into global mode as if it is globally installed

or

force Cypress into global mode as if it were globally installed

See also CLI documentation cypress open --global

Test code to reproduce

npx cypress open -h

Cypress Version

13.15.1

Node version

v22.11.0

Operating System

Ubuntu 24.04.1 LTS

Debug Logs

$ npx cypress open -h
Usage: cypress open [options]

Opens Cypress in the interactive GUI.

Options:
  -b, --browser <browser-path>     runs Cypress in the browser with the given name. if a filesystem path is supplied, Cypress will attempt to use the browser at that path.
  --component                      runs component tests
  -c, --config <config>            sets configuration values. separate multiple values with a comma. overrides any value in cypress.config.{js,ts,mjs,cjs}.
  -C, --config-file <config-file>  path to script file where configuration values are set. defaults to "cypress.config.{js,ts,mjs,cjs}".
  -d, --detached [bool]            runs Cypress application in detached mode
  --e2e                            runs end to end tests
  -e, --env <env>                  sets environment variables. separate multiple values with a comma. overrides any value in cypress.config.{js,ts,mjs,cjs} or cypress.env.json
  --global                         force Cypress into global mode as if its globally installed
  -p, --port <port>                runs Cypress on a specific port. overrides any value in cypress.config.{js,ts,mjs,cjs}.
  -P, --project <project-path>     path to the project
  --dev                            runs cypress in development and bypasses binary check
  -h, --help                       display help for command

Other

No response

MikeMcC399 commented 3 weeks ago
cypress-bot[bot] commented 2 weeks ago

Released in 13.15.2.

This comment thread has been locked. If you are still experiencing this issue after upgrading to Cypress v13.15.2, please open a new issue.