From 5adef9fc424efc685700c5605c82eb46e17abcf4 Mon Sep 17 00:00:00 2001 From: Huidae Cho Date: Tue, 21 Nov 2023 21:06:56 -0700 Subject: [PATCH] Add more specific comments about option value for flag to/from option renaming --- lib/gis/parser.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/gis/parser.c b/lib/gis/parser.c index d53c2184c6e..da5ec6c1b38 100644 --- a/lib/gis/parser.c +++ b/lib/gis/parser.c @@ -1056,8 +1056,8 @@ void set_flag(int f) } } else { - /* if renamed to a new option (less information given), fatal error - */ + /* if renamed to a new option (no option value given but will be + * required), fatal error */ struct Option *opt = NULL; for (opt = &st->first_option; opt; opt = opt->next_opt) { if (strcmp(renamed_key, opt->key) == 0) { @@ -1229,8 +1229,8 @@ void set_option(const char *string) renamed_key = get_renamed_option(the_key); if (renamed_key) { - /* if renamed to a new flag (information loss occurs), fatal error - */ + /* if renamed to a new flag (option value given but will be lost), + * fatal error */ if (*renamed_key == '-') { if (renamed_key[1] == '-') G_asprintf(&err,