浏览代码

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

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@63028 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 10 年之前
父节点
当前提交
8f2d76b7d7
共有 1 个文件被更改,包括 1 次插入5 次删除
  1. 1 5
      raster/r.profile/main.c

+ 1 - 5
raster/r.profile/main.c

@@ -84,12 +84,8 @@ int main(int argc, char *argv[])
     parm.res->description =
 	_("Resolution along profile (default = current region resolution)");
 
-    parm.null_str = G_define_option();
-    parm.null_str->key = "null";
-    parm.null_str->type = TYPE_STRING;
-    parm.null_str->required = NO;
+    parm.null_str = G_define_standard_option(G_OPT_M_NULL_VALUE);
     parm.null_str->answer = "*";
-    parm.null_str->description = _("Character to represent no data cell");
 
     parm.g = G_define_flag();
     parm.g->key = 'g';