[GRASS-SVN] r62936 - in grass/branches/releasebranch_7_0: . display/d.profile

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


Author: martinl
Date: 2014-11-25 06:23:24 -0800 (Tue, 25 Nov 2014)
New Revision: 62936

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



Property changes on: grass/branches/releasebranch_7_0
___________________________________________________________________
Modified: svn:mergeinfo
   - /grass/trunk:60817,61096,61141,62105,62179-62180,62182,62403,62422,62424,62437,62466,62469,62487,62491,62494,62501,62506,62508-62509,62515,62518-62519,62521,62526,62533,62539,62541,62555,62562,62566,62570,62573,62575,62585,62588,62597,62603,62606,62608-62609,62614,62618,62628,62632,62638,62642,62648-62649,62652,62654-62657,62666,62691,62705,62709,62723,62730,62739,62741,62743,62746,62750,62752,62757,62762,62785,62798,62800-62801,62803,62805,62812,62822,62824,62831,62838,62847,62856,62879,62881,62907-62908,62910,62912,62914,62916,62918,62920,62925,62933
   + /grass/trunk:60817,61096,61141,62105,62179-62180,62182,62403,62422,62424,62437,62466,62469,62487,62491,62494,62501,62506,62508-62509,62515,62518-62519,62521,62526,62533,62539,62541,62555,62562,62566,62570,62573,62575,62585,62588,62597,62603,62606,62608-62609,62614,62618,62628,62632,62638,62642,62648-62649,62652,62654-62657,62666,62691,62705,62709,62723,62730,62739,62741,62743,62746,62750,62752,62757,62762,62785,62798,62800-62801,62803,62805,62812,62822,62824,62831,62838,62847,62856,62879,62881,62907-62908,62910,62912,62914,62916,62918,62920,62925,62933,62935

Modified: grass/branches/releasebranch_7_0/display/d.profile/main.c
===================================================================
--- grass/branches/releasebranch_7_0/display/d.profile/main.c	2014-11-25 14:19:33 UTC (rev 62935)
+++ grass/branches/releasebranch_7_0/display/d.profile/main.c	2014-11-25 14:23:24 UTC (rev 62936)
@@ -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