Skip to content

Commit e11fe05

Browse files
fix: wrong error message in -h command #1725 (#1726)
Co-authored-by: Vishal Pathak <[email protected]> Co-authored-by: Moderator <[email protected]>
1 parent fc75b96 commit e11fe05

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/forty-apples-fix.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@asyncapi/cli": patch
3+
---
4+
5+
fix: Wrong Error message in -h command #1725

src/core/hooks/command_not_found/myhook.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const hook: Hook.CommandNotFound = async function (opts) {
2323

2424
// now we we return if the command id are not there.
2525

26-
let binHelp = `${opts.config.bin} help`;
26+
let binHelp = `${opts.config.bin} --help`;
2727

2828
const idSplit = opts.id.split(':');
2929
if (opts.config.findTopic(idSplit[0])) {

0 commit comments

Comments
 (0)