Readme, help: clarify console call and input is filename a bit
This commit is contained in:
parent
20ff43fe6b
commit
cdfb1b0569
|
@ -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
|
||||
--------
|
||||
|
|
|
@ -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,
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue