diff options
author | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-10-04 21:48:11 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2007-10-04 21:48:11 +0000 |
commit | 75e1e4b91e083c82f48de5f426b3cfc6c7c5a7df (patch) | |
tree | 66f7cb600434ebfd34166f3e4ebf4257ee3cb986 /cmd-set-option.c | |
parent | 5a3b92c2dfd9fbcf8bda10742cea1fb47927536d (diff) |
Lose usage and move it into the struct.
Diffstat (limited to 'cmd-set-option.c')
-rw-r--r-- | cmd-set-option.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/cmd-set-option.c b/cmd-set-option.c index c2d836ee..586ae230 100644 --- a/cmd-set-option.c +++ b/cmd-set-option.c @@ -1,4 +1,4 @@ -/* $Id: cmd-set-option.c,v 1.1 2007-10-04 10:11:32 nicm Exp $ */ +/* $Id: cmd-set-option.c,v 1.2 2007-10-04 21:48:11 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net> @@ -41,9 +41,9 @@ struct cmd_set_option_data { }; const struct cmd_entry cmd_set_option_entry = { - CMD_SETOPTION, "set-option", "set", CMD_NOSESSION, + CMD_SETOPTION, "set-option", "set", "option value", + CMD_NOSESSION, cmd_set_option_parse, - cmd_set_option_usage, cmd_set_option_exec, cmd_set_option_send, cmd_set_option_recv, @@ -78,18 +78,13 @@ cmd_set_option_parse(void **ptr, int argc, char **argv, char **cause) return (0); usage: - usage(cause, "%s", cmd_set_option_usage()); + usage(cause, "%s %s", + cmd_set_option_entry.name, cmd_set_option_entry.usage); cmd_set_option_free(data); return (-1); } -const char * -cmd_set_option_usage(void) -{ - return ("set-option option value"); -} - void cmd_set_option_exec(void *ptr, unused struct cmd_ctx *ctx) { |