Update convert docs.

This commit is contained in:
Tomasz Sobczyk
2020-11-04 20:23:36 +01:00
committed by nodchip
parent 5d88e7bce8
commit 8069963c56

View File

@@ -6,10 +6,13 @@ As all commands in stockfish `convert` can be invoked either from command line (
The syntax of this command is as follows:
```
convert from_path to_path [append]
convert from_path to_path [append] [validate]
```
`from_path` is the path to the file to convert from. The type of the data is deduced based on its extension (one of `.plain`, `.bin`, `.binpack`).
`to_path` is the path to an output file. The type of the data is deduced from its extension. If the file does not exist it is created.
The last argument is optional. If not specified then the output file will be truncated prior to any writes. If the last argument is `append` then the converted training data will be appended to the end of the output file.
`append` and `validate` can come in any order and are optional.
If `append` not specified then the output file will be truncated prior to any writes. If `append` is specified then the converted training data will be appended to the end of the output file.
If `validate` is specified then the conversion will stop on the first illegal move found and a diagnostic will be shown.