From d107f71c5079dbe2a023276367b805397d1245c4 Mon Sep 17 00:00:00 2001 From: Zachary T Welch Date: Fri, 20 Nov 2009 14:07:28 -0800 Subject: add command usage, separate from help Adds the usage command, to display usage information for commands. The output for this command will remain erronenously empty until commands are updated to use these new coventions. --- src/helper/command.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/helper/command.h') diff --git a/src/helper/command.h b/src/helper/command.h index 1afaeeaa..7baa92d5 100644 --- a/src/helper/command.h +++ b/src/helper/command.h @@ -160,6 +160,7 @@ struct command { char *name; const char *help; + const char *usage; struct command *parent; struct command *children; command_handler_t handler; @@ -199,6 +200,8 @@ struct command_registration { command_handler_t handler; enum command_mode mode; const char *help; + /// a string listing the options and arguments, required or optional + const char *usage; }; /// Use this as the last entry in an array of command_registration records. -- cgit v1.2.3