X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=client.c;h=8caf44839919fb33c1368715c528f507ebc7a5c9;hb=d440a71683940a58747de6dc32643db452d9cf54;hp=c45826ab645741755e4ab836edc7f26bcd1bf442;hpb=3e16770594ee8267db0523ec733d0af794f277ff;p=paraslash.git diff --git a/client.c b/client.c index c45826ab..8caf4483 100644 --- a/client.c +++ b/client.c @@ -100,7 +100,7 @@ static int create_merged_lpr(const char *line) /* * The original lpr for the interactive session has no non-option * arguments. We create a fresh lpr from the words in "line" and merge - * it with the orignal lpr. + * it with the original lpr. */ ret = lls(lls_parse(argc, argv, cmd, &argv_lpr, &errctx)); free_argv(argv); @@ -243,14 +243,19 @@ I9E_DUMMY_COMPLETER(term); I9E_DUMMY_COMPLETER(stop); I9E_DUMMY_COMPLETER(addatt); I9E_DUMMY_COMPLETER(init); -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,