#compdef nbfc_service

_nbfc_service() {
  _arguments \
    '(--help -h)'{--help,-h}'[show this help message and exit]'::'()'\
    '(--read-only -r)'{--read-only,-r}'[Start in read-only mode]'::'()'\
    '(--fork -f)'{--fork,-f}'[Switch process to background after sucessfully started]'::'()'\
    '(--debug -d)'{--debug,-d}'[Enable tracing of reads and writes of the embedded controller]'::'()'\
    '(--config-file -c)'{--config-file=,-c+}'[Use alternative config file (default /etc/nbfc/nbfc.json)]':config:_files\
    '(--state-file -s)'{--state-file=,-s+}'[Write state to an alternative file (default /var/run/nbfc_service.state.json)]':'state.json':_files\
    '(--embedded-controller -e)'{--embedded-controller=,-e+}'[Specify embedded controller to use]':EC:'(dummy dev_port ec_sys acpi_ec)'
}

_nbfc_service "$@"
