#compdef fson-check
# SPDX-License-Identifier: MIT
# Keep in sync with apps/fson-check/FsonCheck.cpp (USAGE) and fson-check.bash.
_fson-check() {
    _arguments -s \
        '(- :)'{-h,--help}'[show this help and exit]' \
        '(-o --output --json --json5)'{-i,--in-place}'[rewrite <file> in place (only when no errors)]' \
        '(-i --in-place)'{-o,--output}'[write the pretty-printed document to <file>]:output file:_files' \
        '(--json5 --bare -i --in-place)--json[emit fully JSON-compliant output]' \
        '(--json -i --in-place)--json5[emit JSON5-compliant output]' \
        '(--drop-disabled)--keep[with --json/--json5: keep "--" disabled members]' \
        '(--keep)--drop-disabled[with --json/--json5: drop "--" disabled members]' \
        '(--json)--bare[write quoted keys bare when the name grammar allows]' \
        '1:FSON file:_files'
}
_fson-check "$@"
