Browse Source

d.profile: use standardized options (https://trac.osgeo.org/grass/ticket/2409)

git-svn-id: https://svn.osgeo.org/grass/grass/branches/releasebranch_7_0@62936 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 10 years ago
parent
commit
dc2e10a64c
1 changed files with 2 additions and 5 deletions
  1. 2 5
      display/d.profile/main.c

+ 2 - 5
display/d.profile/main.c

@@ -194,15 +194,12 @@ int main(int argc, char **argv)
     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();