*selected = (phpdbg_command_t*) command;
- if (command->has_args == REQUIRED_ARG && param->type == EMPTY_PARAM) {
+ if (command->arg_type == REQUIRED_ARG && param->type == EMPTY_PARAM) {
phpdbg_error("This command requires argument!");
rc = FAILURE;
- } else if (command->has_args == NO_ARG && param->type != EMPTY_PARAM) {
+ } else if (command->arg_type == NO_ARG && param->type != EMPTY_PARAM) {
phpdbg_error("This command does not expect argument!");
rc = FAILURE;
} else {
char alias; /* Alias */
phpdbg_command_handler_t handler; /* Command handler */
const phpdbg_command_t *subs; /* Sub Commands */
- char has_args; /* Accept args? */
+ char arg_type; /* Accept args? */
};
/* }}} */