Skip to content

Commit

Permalink
Update System.js
Browse files Browse the repository at this point in the history
  • Loading branch information
withinJoel authored Oct 16, 2024
1 parent fc98eb7 commit 3cfccab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Modules/System.js
Original file line number Diff line number Diff line change
Expand Up @@ -230,11 +230,14 @@ function whatIsCommand(input) {
// Use echo to display the meaning or a message if the command is not found
if (meaning) {
echo(command + ":" + meaning);
console.log(command + ":" + meaning);
} else {
echo(`Command '${command}' not found.`);
console.log(`Command '${command}' not found.`);
}
} else {
echo("Please use the format 'whatis <command>'.");
console.log("Please use the format 'whatis <command>'.");
}
}

Expand Down

0 comments on commit 3cfccab

Please sign in to comment.