浏览代码

sep= changed to separator= while keeping backward compatibility

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@31869 15284696-431f-4ddb-bdfa-cd5b030d7da7
Huidae Cho 17 年之前
父节点
当前提交
d288a73ca8
共有 2 个文件被更改,包括 5 次插入5 次删除
  1. 1 1
      scripts/g.mlist/description.html
  2. 4 4
      scripts/g.mlist/g.mlist

+ 1 - 1
scripts/g.mlist/description.html

@@ -44,7 +44,7 @@ Print out "tmp0" ..."tmp9" if corresponding vector map exists (each map name lin
 <P>
 
 Print out "tmp0" ..."tmp9" if corresponding vector map exists (each map name comma separated):<BR>
-<TT>g.mlist -r type=vect sep=, pattern='^tmp[0-9]$'</TT>
+<TT>g.mlist -r type=vect separator=, pattern='^tmp[0-9]$'</TT>
 <P>
 This may be useful for other programs' parameter input 
 (e.g. <EM><A HREF="r.series.html">r.series</A></EM>).

+ 4 - 4
scripts/g.mlist/g.mlist

@@ -42,7 +42,7 @@
 #% required : no
 #%end
 #%option
-#% key: sep
+#% key: separator
 #% type: string
 #% description: Output separator (default: newline)
 #% required : no
@@ -94,7 +94,7 @@ fi
 
 type="$GIS_OPT_TYPE"
 mapset="$GIS_OPT_MAPSET"
-sep="$GIS_OPT_SEP"
+separator="$GIS_OPT_SEPARATOR"
 search="$GIS_OPT_PATTERN"
 
 # list all datatypes
@@ -120,8 +120,8 @@ for mapset in $mapsets
 do
     do_list
 done | sort | (
-    if [ "$sep" != "" ] ; then
-	tr '\n' "$sep" | sed 's/.$/\
+    if [ "$separator" != "" ] ; then
+	tr '\n' "$separator" | sed 's/.$/\
 /'
     else
 	cat