summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2020-10-15 10:07:45 -0400
committerJulian Berman <Julian@GrayVines.com>2020-10-15 10:07:45 -0400
commit9502934ca18004712c848f0463d14a014b685420 (patch)
treea6a7d454b374b77b0e68cac0c9a260caf26aba41
parentffcbebd48424e275e77ed45651262c5ac53fd444 (diff)
downloadjsonschema-9502934ca18004712c848f0463d14a014b685420.tar.gz
Minor formatting and wording.
-rw-r--r--jsonschema/cli.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/jsonschema/cli.py b/jsonschema/cli.py
index c33352e..a6ca43c 100644
--- a/jsonschema/cli.py
+++ b/jsonschema/cli.py
@@ -181,9 +181,9 @@ parser.add_argument(
parser.add_argument(
"--base-uri",
help="""
- use this option to indicate that the schema contains some references
- to some local or remote files. With this option, the validator will
- try to resolve those references as paths relative to the given schema.
+ a base URI to assign to the provided schema, even if it does not
+ declare one (via e.g. $id). This option can be used if you wish to
+ resolve relative references to a particular URI (or local path)
""",
)
parser.add_argument(
@@ -261,9 +261,9 @@ def run(arguments, stdout=sys.stdout, stderr=sys.stderr, stdin=sys.stdin):
instances = ["<stdin>"]
resolver = RefResolver(
- base_uri=arguments["base_uri"],
- referrer=schema,
- ) if arguments["base_uri"] is not None else None
+ base_uri=arguments["base_uri"],
+ referrer=schema,
+ ) if arguments["base_uri"] is not None else None
validator = arguments["validator"](schema, resolver=resolver)
exit_code = 0