X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=client.c;h=c43ebe161cfa322ce3e08c6f8a980f2e6de846da;hb=694aab410a10ce242a6ea8784515f51eac0d5fe0;hp=68d8a7efed285891653adfd5d68faaae06d41c1a;hpb=bd28ec9a64884d70917c4fdea1a3a70c91758f83;p=paraslash.git diff --git a/client.c b/client.c index 68d8a7ef..c43ebe16 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. */ @@ -254,6 +250,12 @@ static struct i9e_completer completers[]; static void help_completer(struct i9e_completion_info *ci, struct i9e_completion_result *result) { + char *opts[] = {LSG_SERVER_CMD_HELP_OPTS, NULL}; + + if (ci->word[0] == '-') { + i9e_complete_option(opts, ci, result); + return; + } result->matches = i9e_complete_commands(ci->word, completers); } @@ -497,7 +499,6 @@ static int client_i9e_line_handler(char *line) return 1; } -I9E_DUMMY_COMPLETER(SUPERCOMMAND_UNAVAILABLE); static struct i9e_completer completers[] = { #define LSG_SERVER_CMD_CMD(_name) {.name = #_name, \ .completer = _name ## _completer} @@ -616,7 +617,8 @@ static struct supervisor_task supervisor_task; * * \return EXIT_SUCCESS or EXIT_FAILURE * - * \sa client_open(), stdin.c, stdout.c, para_client(1), para_server(1) + * \sa \ref client_open(), \ref stdin.c, \ref stdout.c, para_client(1), + * para_server(1). */ int main(int argc, char *argv[]) {