rv = c->fun();//执行命令
if (rv == HPI_SHELL_PARM_ERROR)
{
printf("Invalid parameters:\n%s\n", cmd_line);
printf("%s\n", c->help);
go_to_dialog();
shell_error = HPI_SHELL_PARM_ERROR;
return(3);
}
else if (rv == HPI_SHELL_CMD_ERROR)
{
printf("Command failed:\n%s\n", cmd_line);
go_to_dialog();
return(3);
};
shell_error = rv;
阅读(218) | 评论(0) | 转发(0) |