Skip to content

Commit

Permalink
Add synopsis for Prolog CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
fnogatz committed May 9, 2018
1 parent 837e801 commit 49ebf13
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions lib-pl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,25 @@ After the pre-compilation step mentioned before, the created executable can be c
./cli.exe /path/to/your.xsd
```

### Synopsis

```
USAGE: xsd2json [options] <path>
convert a XSD file into equivalent JSON schema
Options:
--whitespace -s atom=remove whitespace handling, one of
remove : clean whitespace [default]
preserve : keep whitespace
--indentation -i integer=2 set indentation level
use 0 for single-line output
--trace -t boolean=false run with activated tracing
--version -v boolean=false show xsd2json version information
--debug-info boolean=false show information usually needed for debugging
--help -h boolean=false display this help
```

## Usage with SWI-Prolog

The `xsd2json.pl` module provides a predicate `xsd2json/2` which can be used to convert a given XSD file into the equivalent JSON Schema. Call it via `swipl -s xsd2json.pl` followed by
Expand Down

0 comments on commit 49ebf13

Please sign in to comment.