only display usable commands in help
commitc0630d8a58c525e09aa938c7a50d4c99d39a93a3
authorZachary T Welch <zw@superlucidity.net>
Sun, 29 Nov 2009 22:29:24 +0000 (29 14:29 -0800)
committerZachary T Welch <zw@superlucidity.net>
Tue, 1 Dec 2009 00:29:24 +0000 (30 16:29 -0800)
tree63044ecb9a38ac2a5727d5852957f64d09a2b94a
parentcee1f39f18296a3aa291b806052c7c3d5a066347
only display usable commands in help

With the ability to defer 'init', users can access the help system while
still in CONFIG mode.  This patch omits commands from the help and usage
list when they cannot be run in the current command mode, making it much
easier to see what can be done at a given time.
src/helper/command.c