Skip to content

Commit

Permalink
Merge pull request #6 from OpenDataServices/5-short-option
Browse files Browse the repository at this point in the history
Add short option to --set-additional-properties-false-everywhere
  • Loading branch information
odscjames authored Oct 5, 2018
2 parents d93fa88 + b956da9 commit 5e8487e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions compiletojsonschema/cli/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ def main():

parser.add_argument('input_file')
parser.add_argument(
"-s",
"--set-additional-properties-false-everywhere",
action='store_true',
help="Set Additional Properties False everywhere? This generates strict schemas that can be used for testing.")
Expand Down
3 changes: 2 additions & 1 deletion docs/cli.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ The output is printed. To save the output to file, simple redirect it:
Set additional properties false everywhere
------------------------------------------

To enable this mode, pass the `--set-additional-properties-false-everywhere` flag.
To enable this mode, pass the `--set-additional-properties-false-everywhere` or `-s` flag.


.. code-block:: shell-session
compiletojsonschema -s input.json
compiletojsonschema --set-additional-properties-false-everywhere input.json

0 comments on commit 5e8487e

Please sign in to comment.