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

Code before:
    .option('-b, --browser <browser-name-or-path>', text('browserRunMode'))
    .option('--ci-build-id <id>', text('ciBuildId'))
    .option('-c, --config <config>', text('config'))
    .option('-C, --config-file <config-file>', text('configFile'))
    .option('-e, --env <env>', text('env'))
    .option('--group <name>', text('group'))
    .option('-k, --key <record-key>', text('key'))
    .option('--headed', text('headed'))
    .option('--headless', text('headless'))
    .option('--no-exit', text('exit'))
    .option('--parallel', text('parallel'))
    .option('-p, --port <port>', text('port'))
    .option('-P, --project <project-path>', text('project'))
    .option('-q, --quiet', text('quiet'))
    .option('--record [bool]', text('record'), coerceFalse)
    .option('-r, --reporter <reporter>', text('reporter'))
    .option('-o, --reporter-options <reporter-options>', text('reporterOptions'))
    .option('-s, --spec <spec>', text('spec'))
    .option('-t, --tag <tag>', text('tag'))
    .option('--dev', text('dev'), coerceFalse)
    .action((opts) => {
      debug('running Cypress run-ct')

      const msg = `
      ${logSymbols.warning} Warning: run-ct is deprecated and will be removed in a future release.
      Use \`run --component\` instead.
      `

      logger.warn()
      logger.warn(stripIndent(msg))
      logger.warn()

      require('./exec/run')
      .start({ ...util.parseOpts(opts), testingType: 'component' })
      .then(util.exit)
      .catch(util.logErrorExit1)
    })

    program
    .command('install')
    .usage('[options]')
    .description(
      'Installs the Cypress executable matching this package\'s version',
    )
    .option('-f, --force', text('forceInstall'))
    .action((opts) => {
      require('./tasks/install')
      .start(util.parseOpts(opts))
      .catch(util.logErrorExit1)
    })


Review comment (suggestion):
```suggestion
      ${logSymbols.warning} Warning: run-ct is deprecated and will be removed in a future release.

      Use \`cypress run --component\` instead.
```

Code after:
    .option('-b, --browser <browser-name-or-path>', text('browserRunMode'))
    .option('--ci-build-id <id>', text('ciBuildId'))
    .option('-c, --config <config>', text('config'))
    .option('-C, --config-file <config-file>', text('configFile'))
    .option('-e, --env <env>', text('env'))
    .option('--group <name>', text('group'))
    .option('-k, --key <record-key>', text('key'))
    .option('--headed', text('headed'))
    .option('--headless', text('headless'))
    .option('--no-exit', text('exit'))
    .option('--parallel', text('parallel'))
    .option('-p, --port <port>', text('port'))
    .option('-P, --project <project-path>', text('project'))
    .option('-q, --quiet', text('quiet'))
    .option('--record [bool]', text('record'), coerceFalse)
    .option('-r, --reporter <reporter>', text('reporter'))
    .option('-o, --reporter-options <reporter-options>', text('reporterOptions'))
    .option('-s, --spec <spec>', text('spec'))
    .option('-t, --tag <tag>', text('tag'))
    .option('--dev', text('dev'), coerceFalse)
    .action((opts) => {
      debug('running Cypress run-ct')

      const msg = `
      ${logSymbols.warning} Warning: run-ct is deprecated and will be removed in a future release.
      Use \`cypress run --component\` instead.
      `

      logger.warn()
      logger.warn(stripIndent(msg))
      logger.warn()

      require('./exec/run')
      .start({ ...util.parseOpts(opts), testingType: 'component' })
      .then(util.exit)
      .catch(util.logErrorExit1)
    })

    program
    .command('install')
    .usage('[options]')
    .description(
      'Installs the Cypress executable matching this package\'s version',
    )
    .option('-f, --force', text('forceInstall'))
    .action((opts) => {
      require('./tasks/install')
      .start(util.parseOpts(opts))
      .catch(util.logErrorExit1)
    })