Update util.prints docs

This commit is contained in:
ines 2017-05-22 13:54:52 +02:00
parent d5a6a9a6a9
commit dddad5bf26

View File

@ -231,7 +231,7 @@ p
data_path = Path('/some/path') data_path = Path('/some/path')
if not path.exists(): if not path.exists():
util.prints("Can't find the path.", data_path, util.prints("Can't find the path.", data_path,
title="Error", exits=True) title="Error", exits=1)
+table(["Name", "Type", "Description"]) +table(["Name", "Type", "Description"])
+row +row
@ -243,5 +243,6 @@ p
+cell #[code **kwargs] +cell #[code **kwargs]
+cell - +cell -
+cell +cell
| #[code title] is rendered as coloured headline. #[code exits=True] | #[code title] is rendered as coloured headline. #[code exits]
| performs system exit after printing. | performs system exit after printing, using the value of the
| argument as the exit code, e.g. #[code exits=1].