Skip to content

Commit

Permalink
fix: fix duplicate -a option in deploy commands
Browse files Browse the repository at this point in the history
It's already defined in the BaseCommand for `--offline`.
  • Loading branch information
serhalp committed Jan 21, 2025
1 parent 667a338 commit 0dd939c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/commands/deploy/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ Support for package.json's main field, and intrinsic index.js entrypoints are co
)
.option('-O, --open', 'Open site after deploy', false)
.option('-m, --message <message>', 'A short message to include in the deploy log')
.option('-a, --auth <token>', 'Netlify auth token to deploy with', env.NETLIFY_AUTH_TOKEN)
.addHelpOption(new Option('-a, --auth <token>', 'Netlify auth token to deploy with'))
.option('-s, --site <name-or-id>', 'A site name or ID to deploy to', env.NETLIFY_SITE_ID)
.option('--json', 'Output deployment data as JSON')
.option('--timeout <number>', 'Timeout to wait for deployment to finish', (value) => Number.parseInt(value))
Expand Down
4 changes: 2 additions & 2 deletions src/commands/integration/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { env } from 'process'

import { OptionValues } from 'commander'
import { Option, OptionValues } from 'commander'

import BaseCommand from '../base-command.js'

Expand All @@ -15,7 +15,7 @@ export const createIntegrationDeployCommand = (program: BaseCommand) => {
.description('Register, build, and deploy a private integration on Netlify')
.option('-p, --prod', 'Deploy to production', false)
.option('-b, --build', 'Build the integration', false)
.option('-a, --auth <token>', 'Netlify auth token to deploy with', env.NETLIFY_AUTH_TOKEN)
.addHelpOption(new Option('-a, --auth <token>', 'Netlify auth token to deploy with'))
.option('-s, --site <name-or-id>', 'A site name or ID to deploy to', env.NETLIFY_SITE_ID)
.action(async (options: OptionValues, command: BaseCommand) => {
const { deploy } = await import('./deploy.js')
Expand Down

0 comments on commit 0dd939c

Please sign in to comment.