diff options
author | Guillaume Nault <g.nault@alphalink.fr> | 2013-02-08 14:27:29 +0100 |
---|---|---|
committer | Kozlov Dmitry <xeb@mail.ru> | 2013-02-12 00:05:34 +0400 |
commit | 58e46bf8447f7c4ab96dd15251b769bc5647f7db (patch) | |
tree | 53bbd4c8ff794f2932bfec17374ccc0433b9677d /drivers | |
parent | 9673dfcdd3866345c1641876b64a11c5f729f72e (diff) | |
download | accel-ppp-58e46bf8447f7c4ab96dd15251b769bc5647f7db.tar.gz accel-ppp-58e46bf8447f7c4ab96dd15251b769bc5647f7db.zip |
cli: Modify regexp command handler registration
Pass a full string, instead of an array of words, to the "help" callback
of regexp command handlers. Also register these command handlers using
a regexp to apply on "help" commands, just like for exec commands. The
"help" callback will then be called only if the command matches the
"help" regexp.
As a side effect, the "help" word and its following spaces are skipped
before calling the "help" callback for both simple and regexp commands.
Signed-off-by: Guillaume Nault <g.nault@alphalink.fr>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions