Readme, help: clarify console call and input is filename a bit

This commit is contained in:
Roman Lebedev 2016-09-28 15:05:24 +03:00
parent 20ff43fe6b
commit cdfb1b0569
No known key found for this signature in database
GPG Key ID: 083C3EBB4A1689E0
2 changed files with 8 additions and 3 deletions

View File

@ -35,6 +35,11 @@ for Python (supporting 2.7+ including Python 3).
...
ValidationError: 'Invalid' is not of type 'number'
It can also be used from console:
.. code-block:: bash
$ jsonschema -i sample.json sample.schema
Features
--------

View File

@ -26,8 +26,8 @@ parser.add_argument(
action="append",
dest="instances",
type=_json_file,
help="a path to a JSON instance to validate "
"(may be specified multiple times)",
help="a path to a JSON instance (i.e. filename.json)"
"to validate (may be specified multiple times)",
)
parser.add_argument(
"-F", "--error-format",
@ -45,7 +45,7 @@ parser.add_argument(
)
parser.add_argument(
"schema",
help="the JSON Schema to validate with",
help="the JSON Schema to validate with (i.e. filename.schema)",
type=_json_file,
)