diff --git a/README.rst b/README.rst index c9314ea..c8bf33a 100644 --- a/README.rst +++ b/README.rst @@ -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 -------- diff --git a/jsonschema/cli.py b/jsonschema/cli.py index 0126564..50c6d84 100644 --- a/jsonschema/cli.py +++ b/jsonschema/cli.py @@ -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, )