Sfoglia il codice sorgente

List --overwrite flag

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@47819 15284696-431f-4ddb-bdfa-cd5b030d7da7
Glynn Clements 13 anni fa
parent
commit
027f4943cc
2 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 1 0
      general/g.copy/main.c
  2. 1 0
      general/g.rename/main.c

+ 1 - 0
general/g.copy/main.c

@@ -44,6 +44,7 @@ int main(int argc, char *argv[])
     module->description =
 	_("Copies available data files in the current mapset "
 	  "search path to the user's current mapset.");
+    module->overwrite = 1;
 
     parm = (struct Option **) G_calloc(nlist, sizeof(struct Option *));
 

+ 1 - 0
general/g.rename/main.c

@@ -45,6 +45,7 @@ int main(int argc, char *argv[])
     G_add_keyword(_("rename"));
     module->description =
 	_("Renames data base element files in the user's current mapset.");
+    module->overwrite = 1;
 
     parm = (struct Option **)G_calloc(nlist, sizeof(struct Option *));