File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
- import { OptionValues } from 'commander'
1
+ import { Option , OptionValues } from 'commander'
2
2
3
3
import requiresSiteInfo from '../../utils/hooks/requires-site-info.js'
4
4
import BaseCommand from '../base-command.js'
@@ -53,7 +53,8 @@ export const createBlobsCommand = (program: BaseCommand) => {
53
53
'-p, --prefix <prefix>' ,
54
54
`A string for filtering down the entries; when specified, only the entries whose key starts with that prefix are returned` ,
55
55
)
56
- . option ( '--json' , `Output list contents as JSON` )
56
+ // The BaseCommand defines a `--json` option which is hidden from the help by default
57
+ . addHelpOption ( new Option ( '--json' , 'Output list contents as JSON' ) )
57
58
. alias ( 'blob:list' )
58
59
. hook ( 'preAction' , requiresSiteInfo )
59
60
. action ( async ( storeName : string , options : OptionValues , command : BaseCommand ) => {
You can’t perform that action at this time.
0 commit comments