_syncthingctl()
{
  eval "$(/usr/bin/syncthingctl --bash-completion-for "$((COMP_CWORD - 1))" "${COMP_WORDS[@]:1}")"
  return 0;
}
complete -F _syncthingctl syncthingctl
