[GRASS-SVN] r62935 - grass/trunk/display/d.profile

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Nov 25 06:19:33 PST 2014


Author: martinl
Date: 2014-11-25 06:19:33 -0800 (Tue, 25 Nov 2014)
New Revision: 62935

Modified:
   grass/trunk/display/d.profile/main.c
Log:
d.profile: use standardized options (#2409)


Modified: grass/trunk/display/d.profile/main.c
===================================================================
--- grass/trunk/display/d.profile/main.c	2014-11-25 14:16:28 UTC (rev 62934)
+++ grass/trunk/display/d.profile/main.c	2014-11-25 14:19:33 UTC (rev 62935)
@@ -194,15 +194,12 @@
     module->description = _("Plots profile of a transect.");
 
     /* set up command line */
-    map = G_define_standard_option(G_OPT_R_INPUT);
+    map = G_define_standard_option(G_OPT_R_MAP);
     map->description = _("Raster map to be profiled");
 
-    profile = G_define_option();
-    profile->key = "profile";
-    profile->type = TYPE_DOUBLE;
+    profile = G_define_standard_option(G_OPT_M_COORDS);
     profile->required = YES;
     profile->multiple = YES;
-    profile->key_desc = "east,north";
     profile->description = _("Profile coordinate pairs");
 
     stored = G_define_flag();



More information about the grass-commit mailing list