فهرست منبع

temporal modules: standardize field separator parameter

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@55518 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Neteler 12 سال پیش
والد
کامیت
f000c8079c

+ 2 - 6
temporal/t.rast.univar/t.rast.univar.py

@@ -27,12 +27,8 @@
 #%option G_OPT_T_WHERE
 #%end
 
-#%option
-#% key: fs
-#% type: string
+#%option G_OPT_F_SEP
 #% description: Field separator character between the output columns
-#% required: no
-#% answer: |
 #%end
 
 #%flag
@@ -58,7 +54,7 @@ def main():
     where = options["where"]
     extended = flags["e"]
     header = flags["h"]
-    fs = options["fs"]
+    fs = options["separator"]
 
     # Make sure the temporal database exists
     tgis.init()

+ 2 - 6
temporal/t.rast3d.univar/t.rast3d.univar.py

@@ -27,12 +27,8 @@
 #%option G_OPT_T_WHERE
 #%end
 
-#%option
-#% key: fs
-#% type: string
+#%option G_OPT_F_SEP
 #% description: Field separator character between the output columns
-#% required: no
-#% answer: |
 #%end
 
 #%flag
@@ -58,7 +54,7 @@ def main():
     where = options["where"]
     extended = flags["e"]
     header = flags["h"]
-    fs = options["fs"]
+    fs = options["separator"]
 
     # Make sure the temporal database exists
     tgis.init()

+ 2 - 6
temporal/t.register/t.register.py

@@ -80,12 +80,8 @@
 #% guisection: Time & Date
 #%end
 
-#%option
-#% key: fs
-#% type: string
+#%option G_OPT_F_SEP
 #% description: Field separator character of the input file
-#% required: no
-#% answer: |
 #% guisection: Input
 #%end
 
@@ -108,7 +104,7 @@ def main():
     maps = options["maps"]
     type = options["type"]
     file = options["file"]
-    fs = options["fs"]
+    fs = options["separator"]
     start = options["start"]
     end = options["end"]
     unit = options["unit"]

+ 1 - 5
temporal/t.vect.db.select/t.vect.db.select.py

@@ -29,12 +29,8 @@
 #%option G_OPT_DB_COLUMNS
 #%end
 
-#%option
-#% key: separator
-#% type: string
+#%option G_OPT_F_SEP
 #% description: Separator character between the output columns
-#% required: no
-#% answer: |
 #%end
 
 #%option G_OPT_V_FIELD