Skip to content

Commit

Permalink
Add info message before help text to give context.
Browse files Browse the repository at this point in the history
  • Loading branch information
yorkshire-pudding committed Sep 2, 2024
1 parent ce0d241 commit e990742
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions includes/command.inc
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,9 @@ function bee_validate_command(array $descriptor) {
function bee_command_show_help() {
global $_bee_command, $_bee_output;

// Show a message to give context to the following help.
bee_message(bt('To help you get it right, here is the help text for this command:'), 'info');

// Get the command descriptor.
$commands = bee_all_commands();
$command_descriptor = $commands[$_bee_command];
Expand Down

0 comments on commit e990742

Please sign in to comment.