Skip to content

Commit

Permalink
feat: prefix helpers with npx
Browse files Browse the repository at this point in the history
  • Loading branch information
RostiMelk committed Dec 11, 2024
1 parent d667007 commit 740e8b9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function generateCommandsDocumentation(
const prefix = group === 'default' ? '' : ` ${group}`

const rows = [
`usage: sanity${prefix} [--default] [-v|--version] [-d|--debug] [-h|--help] <command> [<args>]`,
`usage: npx sanity${prefix} [--default] [-v|--version] [-d|--debug] [-h|--help] <command> [<args>]`,
'',
'Commands:',
]
Expand Down Expand Up @@ -50,7 +50,7 @@ export function generateCommandDocumentation(

const cmdParts = [group || command.name, subCommand].filter(Boolean).join(' ')
return [
`usage: sanity ${cmdParts} ${command.signature}`,
`usage: npx sanity ${cmdParts} ${command.signature}`,
'',
` ${command.description}`,
'',
Expand Down

0 comments on commit 740e8b9

Please sign in to comment.