Skip to content

Commit

Permalink
fix: avoid redefining --json option in blobs:get
Browse files Browse the repository at this point in the history
  • Loading branch information
serhalp committed Jan 21, 2025
1 parent 9280c55 commit 5f2a7c7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/commands/blobs/blobs.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { OptionValues } from 'commander'
import { Option, OptionValues } from 'commander'

import requiresSiteInfo from '../../utils/hooks/requires-site-info.js'
import BaseCommand from '../base-command.js'
Expand Down Expand Up @@ -53,7 +53,8 @@ export const createBlobsCommand = (program: BaseCommand) => {
'-p, --prefix <prefix>',
`A string for filtering down the entries; when specified, only the entries whose key starts with that prefix are returned`,
)
.option('--json', `Output list contents as JSON`)
// The BaseCommand defines a `--json` option which is hidden from the help by default
.addHelpOption(new Option('--json', 'Output list contents as JSON'))
.alias('blob:list')
.hook('preAction', requiresSiteInfo)
.action(async (storeName: string, options: OptionValues, command: BaseCommand) => {
Expand Down

0 comments on commit 5f2a7c7

Please sign in to comment.