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
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' ValidationError: 'Invalid' is not of type 'number'
It can also be used from console:
.. code-block:: bash
$ jsonschema -i sample.json sample.schema
Features Features
-------- --------

View File

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