Skip to content

Commit

Permalink
Update vcdbg help
Browse files Browse the repository at this point in the history
The help text is now clearer.
When using vcdbg help <command>, prevent the command name itself
being displayed twice.

Fixes raspberrypi/firmware#594
  • Loading branch information
James Hughes authored and popcornmix committed Jul 24, 2019
1 parent f00a118 commit aa4e834
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions interface/vcos/generic/vcos_cmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -390,13 +390,14 @@ static VCOS_STATUS_T help_cmd( VCOS_CMD_PARAM_T *param )
* currently running
*/

param->cmd_entry = found_entry;
param->argv[0] = param->argv[1];
param->argv++;
param->argc--;

vcos_cmd_usage( param );
return VCOS_SUCCESS;
vcos_cmd_printf( param, "Usage: " );
print_argument_prefix( param );
vcos_cmd_printf( param, "%s %s - %s\n",
param->argv[1],
found_entry->args,
found_entry->descr );

return VCOS_SUCCESS;
}

vcos_cmd_error( param, "- unrecognized command: '%s'", param->argv[1] );
Expand Down

0 comments on commit aa4e834

Please sign in to comment.