X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=client.c;h=f72719f27df46b012165a9e8c8bde3586d602a95;hp=c45826ab645741755e4ab836edc7f26bcd1bf442;hb=7e611b37e41f0ec7ec6d3173b7e88ed5b9b3a276;hpb=53af5c6efb309565990203fd8504a812ec9166c9 diff --git a/client.c b/client.c index c45826ab..f72719f2 100644 --- a/client.c +++ b/client.c @@ -248,9 +248,15 @@ I9E_DUMMY_COMPLETER(tasks); static struct i9e_completer completers[]; static void help_completer(struct i9e_completion_info *ci, - struct i9e_completion_result *result) + struct i9e_completion_result *cr) { - result->matches = i9e_complete_commands(ci->word, completers); + char *opts[] = {LSG_SERVER_CMD_HELP_OPTS, NULL}; + + if (ci->word[0] == '-') { + i9e_complete_option(opts, ci, cr); + return; + } + cr->matches = i9e_complete_commands(ci->word, completers); } static void stat_completer(struct i9e_completion_info *ci,