Skip to content

Commit

Permalink
fix: fix env:import options
Browse files Browse the repository at this point in the history
- `-r` was already used globally so this was being ignored
- the camelCase version was using the same short option as the kebab-case, which isn't allowed
  • Loading branch information
serhalp committed Jan 23, 2025
1 parent b221a40 commit 4727ceb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/commands/env/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@ export const createEnvCommand = (program: BaseCommand) => {
.argument('<fileName>', '.env file to import')
.addOption(
new Option(
'-r --replaceExisting',
'--replaceExisting',
'Old, prefer --replace-existing. Replace all existing variables instead of merging them with the current ones',
)
.default(false)
.hideHelp(true),
)
.option(
'-r, --replace-existing',
'-R, --replace-existing',
'Replace all existing variables instead of merging them with the current ones',
false,
)
Expand Down

0 comments on commit 4727ceb

Please sign in to comment.