diff options
author | Julian Berman <Julian@GrayVines.com> | 2020-10-15 10:07:45 -0400 |
---|---|---|
committer | Julian Berman <Julian@GrayVines.com> | 2020-10-15 10:07:45 -0400 |
commit | 9502934ca18004712c848f0463d14a014b685420 (patch) | |
tree | a6a7d454b374b77b0e68cac0c9a260caf26aba41 /jsonschema/cli.py | |
parent | ffcbebd48424e275e77ed45651262c5ac53fd444 (diff) | |
download | jsonschema-9502934ca18004712c848f0463d14a014b685420.tar.gz |
Minor formatting and wording.
Diffstat (limited to 'jsonschema/cli.py')
-rw-r--r-- | jsonschema/cli.py | 12 |
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 |