add command_name helper
authorZachary T Welch <zw@superlucidity.net>
Wed, 11 Nov 2009 13:26:17 +0000 (05:26 -0800)
committerZachary T Welch <zw@superlucidity.net>
Wed, 11 Nov 2009 20:15:39 +0000 (12:15 -0800)
commit2d3cc1eac126990c5cd4ca8a47b0c09814dc1e5c
tree2cd172276cee6e897d41926c9e04040211cc7bb8
parentf93c98081f58f1487d518356a05edf219b0237c3
add command_name helper

The command_name function returns a malloced string for a given
command and its parents.  This can be used to display a message
to the user, but it is used internally to handle registration
and syntax errors.  This helps permit arbitrary command nesting.
src/helper/command.c
src/helper/command.h