Skip to content

Commit b67a345

Browse files
authored
[typo] usage json example (#745)
1 parent cf02a12 commit b67a345

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/commands/cli.test.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ describe('socket root command', async () => {
2121
2222
Usage
2323
$ socket <command>
24-
$ socket scan create--json
24+
$ socket scan create --json
2525
$ socket package score npm lodash --markdown
2626
2727
Note: All commands have their own --help

src/utils/meow-with-subcommands.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ export async function meowWithSubcommands(
524524
const lines = ['', 'Usage', ` $ ${name} <command>`]
525525
if (isRootCommand) {
526526
lines.push(
527-
` $ ${name} scan create${FLAG_JSON}`,
527+
` $ ${name} scan create ${FLAG_JSON}`,
528528
` $ ${name} package score ${NPM} lodash ${FLAG_MARKDOWN}`,
529529
)
530530
}

0 commit comments

Comments
 (0)