Option given twice
error An error stops the build: nothing is published until it is fixed.
The command line gives the same option twice. The folder written after
statac build or statac check is the site’s folder, as --site gives it,
so giving both counts as --site twice.
What you’ll see
error Option given twice: `--site`
Keep one of them.
More: https://statac.dev/e/option-given-twice/
In the terminal the message also names the file and line where there is one, and marks the exact text.
Why Statac stops
Statac can’t tell which of the two values you meant, and taking either would quietly ignore the other.
How to fix it
Keep the option once, with the value you want.
Example
statac build docs --site=site
Keep one of them:
statac build docs
Its name
| Name | option-given-twice |
|---|---|
| In the terminal | statac explain option-given-twice |
| To stop showing it | It stops the build, so it can't be quietened. |
Something unclear or wrong? Open an issue on GitHub.