[GRASS-SVN] r61068 - grass/trunk/vector/v.net.path
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jun 29 11:24:30 PDT 2014
Author: turek
Date: 2014-06-29 11:24:30 -0700 (Sun, 29 Jun 2014)
New Revision: 61068
Modified:
grass/trunk/vector/v.net.path/main.c
Log:
v.net.path: description of options, order of options in guisections
Modified: grass/trunk/vector/v.net.path/main.c
===================================================================
--- grass/trunk/vector/v.net.path/main.c 2014-06-29 18:12:35 UTC (rev 61067)
+++ grass/trunk/vector/v.net.path/main.c 2014-06-29 18:24:30 UTC (rev 61068)
@@ -4,7 +4,7 @@
* MODULE: v.net.path
*
* AUTHOR(S): Radim Blazek
- * Stepan Turek <stepan.turek seznam.cz> (turns support)
+ * Stepan Turek <stepan.turek seznam.cz> (turns support)
*
* PURPOSE: Shortest path on vector network
*
@@ -47,18 +47,18 @@
input_opt = G_define_standard_option(G_OPT_V_INPUT);
output_opt = G_define_standard_option(G_OPT_V_OUTPUT);
- type_opt = G_define_standard_option(G_OPT_V_TYPE);
- type_opt->options = "line,boundary";
- type_opt->answer = "line,boundary";
- type_opt->required = YES;
- type_opt->label = _("Arc type");
-
afield_opt = G_define_standard_option(G_OPT_V_FIELD);
afield_opt->key = "alayer";
afield_opt->answer = "1";
afield_opt->required = YES;
afield_opt->label = _("Arc layer");
+ type_opt = G_define_standard_option(G_OPT_V_TYPE);
+ type_opt->options = "line,boundary";
+ type_opt->answer = "line,boundary";
+ type_opt->required = YES;
+ type_opt->label = _("Arc type");
+
nfield_opt = G_define_standard_option(G_OPT_V_FIELD);
nfield_opt->key = "nlayer";
nfield_opt->answer = "2";
@@ -109,7 +109,7 @@
tfield_opt->answer = "3";
tfield_opt->label = _("Turntable layer");
tfield_opt->description =
- _("If the -t flag is given, the parameter is required");
+ _("Relevant only with -t flag.");
tfield_opt->guisection = _("Turntable");
tucfield_opt = G_define_standard_option(G_OPT_V_FIELD);
@@ -117,7 +117,7 @@
tucfield_opt->answer = "4";
tucfield_opt->label = _("Layer with unique categories used in turntable");
tucfield_opt->description =
- _("If the -t flag is given, the parameter is required");
+ _("Relevant only with -t flag.");
tucfield_opt->guisection = _("Turntable");
geo_f = G_define_flag();
@@ -132,10 +132,8 @@
turntable_f = G_define_flag();
turntable_f->key = 't';
- turntable_f->description = _("Use turntable"
- "(tuclayer and tlayer are required with this flag).");
+ turntable_f->description = _("Use turntable");
-
if (G_parser(argc, argv))
exit(EXIT_FAILURE);
More information about the grass-commit
mailing list