README fix
This commit is contained in:
parent
0afeca617b
commit
dfbaa98af6
46
README.md
46
README.md
|
@ -364,39 +364,27 @@ Mandatory.
|
||||||
## Command-Line Interface
|
## Command-Line Interface
|
||||||
|
|
||||||
```
|
```
|
||||||
yasd [-q | -l] CMD
|
usage: yasd [-h] [-q] [-l] [-n NUM] {convert,check,sample,document,man} [file]
|
||||||
|
|
||||||
CMD (mandatory and only one at once):
|
YASD, Yet Another Schema Definition. YASD is a YAML format for human writable
|
||||||
|
XSDs (XML Schema Definition), humans declare what is indispensable, leaving
|
||||||
|
the machines to do the rest of the unreadable <syntaxis who_can_read_this="?"
|
||||||
|
/>.
|
||||||
|
|
||||||
convert [-f xsd | json] FILE
|
positional arguments:
|
||||||
check FILE
|
{convert,check,sample,document,man}
|
||||||
sample [-n INT] FILE
|
action to perform
|
||||||
man
|
file file in YAML format
|
||||||
help
|
|
||||||
|
|
||||||
ARGS:
|
options:
|
||||||
|
-h, --help show this help message and exit
|
||||||
|
-q, --quiet enable quiet mode
|
||||||
|
-l, --log write log
|
||||||
|
-n NUM, --num NUM number of XML samples; 1 by default
|
||||||
|
|
||||||
-q | --quiet No prints; doesn't apply for man and help.
|
(c) 2023 Perro Tuerto <hi@perrotuerto.blog>. Founded by Mexican Academy of
|
||||||
-l | --logs Writes logs.
|
Language <https://academia.org.mx>. Licensed under GPLv3
|
||||||
-f | --format Format type; could be 'xsd' or 'json'; 'xsd' by default.
|
<https://www.gnu.org/licenses/gpl-3.0.en.html>.
|
||||||
-n | --num Number of samples; 1 by default.
|
|
||||||
convert Converts YASD file to XSD or JSON format; XSD by default.
|
|
||||||
check Validates YASD file.
|
|
||||||
sample Writes XML samples according to schema.
|
|
||||||
man Prints README.md
|
|
||||||
help Prints this.
|
|
||||||
FILE YAML file; file extension doesn't matter.
|
|
||||||
|
|
||||||
EXAMPLES:
|
|
||||||
|
|
||||||
yasd convert schema.yasd
|
|
||||||
yasd --quiet --logs convert schema.yasd
|
|
||||||
yasd -ql -f json convert schema.yasd
|
|
||||||
yasd check schema.yaml
|
|
||||||
yasd sample schema.yasd
|
|
||||||
yasd sample -n 10 schema.yaml
|
|
||||||
yasd man
|
|
||||||
yasd help
|
|
||||||
```
|
```
|
||||||
|
|
||||||
[^1]: The following explanation is practically a copy-paste from "XSD - The
|
[^1]: The following explanation is practically a copy-paste from "XSD - The
|
||||||
|
|
Loading…
Reference in New Issue