• R/O
  • SSH

chkcsv: Commit

Default repository for chkcsv.py.


Commit MetaInfo

Revision3fc36c050e59459b249c8513e44abc43c62a2ab9 (tree)
Zeit2018-07-29 08:54:13
AutorDreas Nielsen <dreas.nielsen@gmai...>
CommiterDreas Nielsen

Log Message

Documentation edits.

Ändern Zusammenfassung

Diff

diff -r d4faed2f5638 -r 3fc36c050e59 doc/source/index.rst
--- a/doc/source/index.rst Sat Jul 28 16:17:46 2018 -0700
+++ b/doc/source/index.rst Sat Jul 28 16:54:13 2018 -0700
@@ -142,6 +142,29 @@
142142 with no type specified.
143143
144144
145+Output
146+===========================
147+
148+If the format of the CSV file matches the specification,
149+chkcsv sets the system exit status to 0; no other output is produced. If
150+the CSV file does not match the specification, chkcsv sets the system
151+exit status to 1 and writes error messages to the standard error
152+device. An example set of error message appears as follows:
153+
154+.. code-block:: none
155+
156+ Error: invalid date in file bad_input.csv on line 4 in column Date.
157+ Error: pattern mismatch in file bad_input.csv on line 6 in column 1221_qual.
158+ Error: not a floating-point number in file bad_input.csv on line 9 in column 1242.
159+ Error: data too short in file bad_input.csv on line 11 in column Station.
160+ Error: missing data in file bad_input.csv on line 12 in column Station.
161+ Error: data too short in file bad_input.csv on line 12 in column Station.
162+ Error: pattern mismatch in file bad_input.csv on line 13 in column 1248_qual.
163+ Error: data too long in file bad_input.csv on line 13 in column Station.
164+ Error: pattern mismatch in file bad_input.csv on line 14 in column Station.
165+
166+
167+
145168 Usage Notes
146169 ===========================
147170
Show on old repository browser