Commit 8682753c authored by V V's avatar V V

fixed help command

parent de54c003
...@@ -1815,7 +1815,7 @@ enum command_argument get_complete_mode (void) { ...@@ -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) { ...@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment