Skip to content

Commit 9502934

Browse files
committed
Minor formatting and wording.
1 parent ffcbebd commit 9502934

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

jsonschema/cli.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,9 @@ def _namedAnyWithDefault(name):
181181
parser.add_argument(
182182
"--base-uri",
183183
help="""
184-
use this option to indicate that the schema contains some references
185-
to some local or remote files. With this option, the validator will
186-
try to resolve those references as paths relative to the given schema.
184+
a base URI to assign to the provided schema, even if it does not
185+
declare one (via e.g. $id). This option can be used if you wish to
186+
resolve relative references to a particular URI (or local path)
187187
""",
188188
)
189189
parser.add_argument(
@@ -261,9 +261,9 @@ def load(_):
261261
instances = ["<stdin>"]
262262

263263
resolver = RefResolver(
264-
base_uri=arguments["base_uri"],
265-
referrer=schema,
266-
) if arguments["base_uri"] is not None else None
264+
base_uri=arguments["base_uri"],
265+
referrer=schema,
266+
) if arguments["base_uri"] is not None else None
267267

268268
validator = arguments["validator"](schema, resolver=resolver)
269269
exit_code = 0

0 commit comments

Comments
 (0)