Make the help info more friendly in monitor
cover Make the help info more friendly in monitor
During my test, I found it inconvenient when I type "help" or "help info", because the information was shown without orderliness. This patch would just show the help information in sorted order.
For eg:
(qemu)helpacl_addacl_policyacl_removeacl_resetacl_show
balloonblock_passwd
...
the command list is sorted.
Wayne Xia (1):
Sort the help info shown in monitor
monitor.c | 97 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 93 insertions(+), 4 deletions(-)
Signature · 1 line
1.7.6
Quoted 16 lines · Wayne Xia
During my test, I found it inconvenient when I type "help" or "help info", because the information was shown without orderliness. This patch would just show the help information in sorted order.
For eg:
(qemu)helpacl_addacl_policyacl_removeacl_resetacl_show
balloonblock_passwd
...
the command list is sorted.
Quoted 5 lines
Wayne Xia (1):
Sort the help info shown in monitormonitor.c | 97 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 93 insertions(+), 4 deletions(-)
This is a nice idea. We could keep hmp/qmp-commands.hx in sorted order but that prevents us from keeping related commands together in those files (and the generated documentation?). So sorting at run-time makes sense.
Stefan
Quoted 20 lines · On Wed, 28 Sep 2011 10:16:19 +0100 Stefan Hajnoczi <[email protected]> wrote:
Quoted 19 lines · Wayne Xia
During my test, I found it inconvenient when I type "help" or "help info", because the information was shown without orderliness. This patch would just show the help information in sorted order.
For eg:
(qemu)helpacl_addacl_policyacl_removeacl_resetacl_show
balloonblock_passwd
...
the command list is sorted.Wayne Xia (1):
Sort the help info shown in monitor
Quoted 7 lines
Quoted 2 lines
monitor.c | 97 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 93 insertions(+), 4 deletions(-)This is a nice idea. We could keep hmp/qmp-commands.hx in sorted order but that prevents us from keeping related commands together in those files (and the generated documentation?). So sorting at run-time makes sense.
The info help command reads from hmp-commands.hx and the info_cmds array, I would prefer to get those sorted.
Quoted 26 lines · Luiz Capitulino
Quoted 23 lines · On Wed, 28 Sep 2011 10:16:19 +0100 Stefan Hajnoczi<[email protected]> wrote:
Quoted 21 lines · Wayne Xia
During my test, I found it inconvenient when I type "help" or "help info", because the information was shown without orderliness. This patch would just show the help information in sorted order.
For eg:
(qemu)helpacl_addacl_policyacl_removeacl_resetacl_show
balloonblock_passwd
...
the command list is sorted.Wayne Xia (1):
Sort the help info shown in monitormonitor.c | 97 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 93 insertions(+), 4 deletions(-)
Quoted 8 lines
Quoted 4 lines
This is a nice idea. We could keep hmp/qmp-commands.hx in sorted order but that prevents us from keeping related commands together in those files (and the generated documentation?). So sorting at run-time makes sense.
The info help command reads from hmp-commands.hx and the
info_cmdsarray, I would prefer to get those sorted.
thanks, sorting info_cmds array seems more reasonable for that related things would be kept here in one place not another queue, would change in next patch.
Signature · 5 lines
Best Regards Wayne Xia mail:[email protected] tel:86-010-82450803