fixed help command
This commit is contained in:
parent
de54c0038b
commit
8682753c5d
@ -1815,7 +1815,7 @@ enum command_argument get_complete_mode (void) {
|
|||||||
ok = (cur_token_double () != NOT_FOUND);
|
ok = (cur_token_double () != NOT_FOUND);
|
||||||
break;
|
break;
|
||||||
case ca_command:
|
case ca_command:
|
||||||
ok = 1;
|
ok = cur_token_len > 0;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
assert (0);
|
assert (0);
|
||||||
@ -3481,6 +3481,10 @@ void interpreter_ex (char *line, void *ex) {
|
|||||||
}
|
}
|
||||||
if (op == ca_string || op == ca_file_name || op == ca_command) {
|
if (op == ca_string || op == ca_file_name || op == ca_command) {
|
||||||
if (cur_token_end_str || cur_token_len < 0) {
|
if (cur_token_end_str || cur_token_len < 0) {
|
||||||
|
if (opt) {
|
||||||
|
flags ++;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
fail_interface (TLS, ex, ENOSYS, "can not parse string arg #%d", args_num);
|
fail_interface (TLS, ex, ENOSYS, "can not parse string arg #%d", args_num);
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user