Fix/improve on-line help of 'define' command.

There is an inconsistency between the doc and the online help.
=> the doc is correct, so fixing/improving the on-line help.

2018-06-14  Philippe Waroquiers  <philippe.waroquiers@skynet.be>

	* cli/cli-script.c (_initialize_cli_script): Fix online documentation
	of 'define' command.
This commit is contained in:
Philippe Waroquiers
2018-06-04 23:21:00 +02:00
parent 0dbfed25e9
commit 87a8eca781
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2018-06-14 Philippe Waroquiers <philippe.waroquiers@skynet.be>
* cli/cli-script.c (_initialize_cli_script): Fix online documentation
of 'define' command.
2018-06-14 Tom de Vries <tdevries@suse.de> 2018-06-14 Tom de Vries <tdevries@suse.de>
PR cli/22573 PR cli/22573

View File

@ -1602,7 +1602,9 @@ Define a new command name. Command name is argument.\n\
Definition appears on following lines, one command per line.\n\ Definition appears on following lines, one command per line.\n\
End with a line of just \"end\".\n\ End with a line of just \"end\".\n\
Use the \"document\" command to give documentation for the new command.\n\ Use the \"document\" command to give documentation for the new command.\n\
Commands defined in this way may have up to ten arguments.")); Commands defined in this way may accept an unlimited number of arguments\n\
accessed via $arg0 .. $argN. $argc tells how many arguments have\n\
been passed."));
add_com ("while", class_support, while_command, _("\ add_com ("while", class_support, while_command, _("\
Execute nested commands WHILE the conditional expression is non zero.\n\ Execute nested commands WHILE the conditional expression is non zero.\n\