[RFA,12/12] Update help text in record.c
Commit Message
This updates some help text in record.c to conform to GNU standards.
I also added a "Usage" line to "record save".
2018-04-29 Tom Tromey <tom@tromey.com>
* record.c (_initialize_record): Update help text.
---
gdb/ChangeLog | 4 ++++
gdb/record.c | 4 ++--
2 files changed, 6 insertions(+), 2 deletions(-)
Comments
On 04/30/2018 03:37 PM, Tom Tromey wrote:
> diff --git a/gdb/record.c b/gdb/record.c
> index d7befb2a74..4ecfc8f418 100644
> --- a/gdb/record.c
> +++ b/gdb/record.c
> @@ -822,8 +822,8 @@ A size of \"unlimited\" means unlimited lines. The default is 10."),
>
> c = add_cmd ("save", class_obscure, cmd_record_save,
> _("Save the execution log to a file.\n\
> -Argument is optional filename.\n\
> -Default filename is 'gdb_record.<process_id>'."),
> +Usage: record save [FILENAME]\n\
> +Default filename is 'gdb_record.PROCESS_ID'."),
Same as in the other patch, about PROCESS_ID not being user
input here.
Otherwise OK.
Thanks,
Pedro Alves
@@ -822,8 +822,8 @@ A size of \"unlimited\" means unlimited lines. The default is 10."),
c = add_cmd ("save", class_obscure, cmd_record_save,
_("Save the execution log to a file.\n\
-Argument is optional filename.\n\
-Default filename is 'gdb_record.<process_id>'."),
+Usage: record save [FILENAME]\n\
+Default filename is 'gdb_record.PROCESS_ID'."),
&record_cmdlist);
set_cmd_completer (c, filename_completer);