forked from tools/josh
1
0
Fork 0

Fix help resolution type detection

This commit is contained in:
Florine W. Dekker 2021-04-23 00:39:09 +02:00
parent 66414bac8b
commit 284c21534e
Signed by: FWDekker
GPG Key ID: B1B567AF58D6EE0F
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "fwdekker.com",
"version": "0.40.3",
"version": "0.40.4",
"description": "The source code of [my personal website](https://fwdekker.com/).",
"author": "Felix W. Dekker",
"browser": "dist/bundle.js",

View File

@ -607,7 +607,7 @@ return new Command(
streams.out.write("\\n\\n");
const command = josh.interpreter.resolve(commandName);
if (command === undefined) {
if (command === undefined || command instanceof Directory) {
streams.err.writeLine(\`help: Unknown command '\${commandName}'.\`);
return ExitCode.USAGE;
}