Просмотр исходного кода

libgis: clarify warning about renamed options
(merge https://trac.osgeo.org/grass/changeset/63362, https://trac.osgeo.org/grass/changeset/63367 from trunk)


git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@63373 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 10 лет назад
Родитель
Сommit
0a8f10ba29
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      lib/gis/parser.c

+ 2 - 2
lib/gis/parser.c

@@ -994,9 +994,9 @@ void set_option(const char *string)
         if (renamed_key) {
             for (at_opt = &st->first_option; at_opt; at_opt = at_opt->next_opt) {
                 if (strcmp(renamed_key, at_opt->key) == 0) {
-                    G_warning(_("Please update the interface of the module: "
+                    G_warning(_("Please update the usage of <%s>: "
                                 "option <%s> has been renamed to <%s>"),
-                              the_key, renamed_key);
+                              G_program_name(), the_key, renamed_key);
                     opt = at_opt;
                     found = 1;
                     break;