浏览代码

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

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

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

@@ -115,12 +115,8 @@ int main(int argc, char *argv[])
     opt.points->required = NO;
     opt.points->required = NO;
     opt.points->guisection = _("Query");
     opt.points->guisection = _("Query");
     
     
-    opt.null = G_define_option();
-    opt.null->key = "null";
-    opt.null->type = TYPE_STRING;
-    opt.null->required = NO;
+    opt.null = G_define_standard_option(G_OPT_M_NULL_VALUE);
     opt.null->answer = "*";
     opt.null->answer = "*";
-    opt.null->description = _("String to represent no data cell");
     opt.null->guisection = _("Print");
     opt.null->guisection = _("Print");
     
     
     opt.output = G_define_standard_option(G_OPT_F_OUTPUT);
     opt.output = G_define_standard_option(G_OPT_F_OUTPUT);