Browse Source

r.lake: fix bogus related to https://trac.osgeo.org/grass/changeset/31561

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@31564 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 17 năm trước cách đây
mục cha
commit
8f85d97a8f
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      raster/r.lake/main.c

+ 3 - 3
raster/r.lake/main.c

@@ -159,7 +159,7 @@ int main(int argc, char *argv[])
     module->description =
     module->description =
         _("Fills lake from seed at given level.");
         _("Fills lake from seed at given level.");
 
 
-    tmap_opt = G_define_option(G_OPT_R_ELEV) ;
+    tmap_opt = G_define_standard_option(G_OPT_R_ELEV) ;
 
 
     wlvl_opt = G_define_option() ;
     wlvl_opt = G_define_option() ;
     wlvl_opt->key         = "wl";
     wlvl_opt->key         = "wl";
@@ -167,7 +167,7 @@ int main(int argc, char *argv[])
     wlvl_opt->type        = TYPE_DOUBLE;
     wlvl_opt->type        = TYPE_DOUBLE;
     wlvl_opt->required    = YES;
     wlvl_opt->required    = YES;
 
 
-    lake_opt = G_define_option(G_OPT_R_OUTPUT) ;
+    lake_opt = G_define_standard_option(G_OPT_R_OUTPUT) ;
     lake_opt->key         = "lake";
     lake_opt->key         = "lake";
     lake_opt->description = _("Name for output raster map with lake");
     lake_opt->description = _("Name for output raster map with lake");
     smap_opt->required    = NO;
     smap_opt->required    = NO;
@@ -180,7 +180,7 @@ int main(int argc, char *argv[])
     sdxy_opt->required    = NO;
     sdxy_opt->required    = NO;
     sdxy_opt->multiple    = NO;
     sdxy_opt->multiple    = NO;
 
 
-    smap_opt = G_define_option(G_OPT_R_MAP) ;
+    smap_opt = G_define_standard_option(G_OPT_R_MAP) ;
     smap_opt->key         = "seed";
     smap_opt->key         = "seed";
     smap_opt->description = _("Name of raster map with seed (at least 1 cell > 0)");
     smap_opt->description = _("Name of raster map with seed (at least 1 cell > 0)");
     smap_opt->required    = NO;
     smap_opt->required    = NO;