Skip to content

Commit

Permalink
refactor: after review
Browse files Browse the repository at this point in the history
  • Loading branch information
PKulkoRaccoonGang committed Oct 4, 2023
1 parent e9eedf9 commit 140bb96
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions bin/paragon-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,14 @@ const COMMANDS = {
},
help: {
executor: helpCommand,
parameters: [
{
name: 'command',
description: '',
defaultValue: '\'\'',
required: false,
},
],
description: 'Displays help for available commands.',
},
};
Expand Down
2 changes: 1 addition & 1 deletion lib/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function helpCommand(commands, commandArgs) {

console.log(chalk.yellow.bold('Paragon Help'));
console.log();
console.log(`Available ${commandArgs.length ? 'command' : 'commands'}:`);
console.log(`Available ${commandArgs.length ? 'command' : 'commands'}:`); // remove
console.log();

Object.entries(retrievedCommands).forEach(([command, { parameters, description, options }]) => {
Expand Down

0 comments on commit 140bb96

Please sign in to comment.