X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=client.c;h=bc5132b6ffe620558f78f390eba70ebad6faae59;hp=2607ee203ee6556a35535f0a293f41dd00203b2e;hb=d4603bf234d23adb56b208efb90ce66772c4ef5b;hpb=4791d009b3a2952e9c1d2bef22a5f301d28ed2a0 diff --git a/client.c b/client.c index 2607ee20..bc5132b6 100644 --- a/client.c +++ b/client.c @@ -1,8 +1,4 @@ -/* - * Copyright (C) 1997 Andre Noll - * - * Licensed under the GPL v2. For licencing details see COPYING. - */ +/* Copyright (C) 1997 Andre Noll , see file COPYING. */ /** \file client.c The client program used to connect to para_server. */ @@ -252,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,