mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-09 15:52:31 +03:00
Update util.prints docs
This commit is contained in:
parent
d5a6a9a6a9
commit
dddad5bf26
|
@ -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].
|
||||||
|
|
Loading…
Reference in New Issue
Block a user