projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
filter: Use lsu_merge_config_file_options().
[paraslash.git]
/
client.c
diff --git
a/client.c
b/client.c
index 3e9219fd9226a1f1f37c5010e0237b982da9c59d..bc5132b6ffe620558f78f390eba70ebad6faae59 100644
(file)
--- 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,
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,
}
static void stat_completer(struct i9e_completion_info *ci,