_node_complete() {
  local cur_word options
  cur_word="${COMP_WORDS[COMP_CWORD]}"
  if [[ "${cur_word}" == -* ]] ; then
    COMPREPLY=( $(compgen -W '--dns-result-order --http-parser --expose-internals --experimental-abortcontroller --experimental-global-webcrypto --trace-deprecation --pending-deprecation --tls-min-v1.3 --cpu-prof --cpu-prof-interval --require --heap-prof --debug-brk --throw-deprecation --experimental-report --trace-atomics-wait --test --use-largepages --use-bundled-ca --inspect-port --interactive --trace-event-file-pattern --addons --disable-proto --tls-cipher-list --preserve-symlinks --secure-heap --icu-data-dir --secure-heap-min --prof-process --v8-pool-size --report-compact --perf-basic-prof --experimental-worker --version --tls-min-v1.2 --openssl-config --inspect-brk --preserve-symlinks-main --heap-prof-name --test-only --title --security-revert --use-openssl-ca --track-heap-objects --trace-sigint --force-async-hooks-checks --completion-bash --report-dir --node-memory-debug --input-type --openssl-legacy-provider --report-on-fatalerror --experimental-wasm-modules --openssl-shared-config --force-fips --experimental-modules --experimental-policy --build-snapshot --experimental-import-meta-resolve --experimental-network-imports --max-http-header-size --enable-source-maps --heap-prof-dir --unhandled-rejections --help --report-filename --verify-base-objects --tls-keylog --heapsnapshot-near-heap-limit --warnings --experimental-top-level-await --experimental-json-modules --trace-event-categories --eval --heap-prof-interval --napi-modules --report-on-signal --prof --trace-warnings --trace-exit --perf-basic-prof-only-functions --disallow-code-generation-from-strings --inspect-brk-node --test-udp-no-try-send --deprecation --debug --experimental-loader --perf-prof --trace-tls --max-old-space-size --inspect --tls-max-v1.3 --abort-on-uncaught-exception --node-snapshot --perf-prof-unwinding-info --redirect-warnings --report-uncaught-exception --interpreted-frames-native-stack --diagnostic-dir --enable-fips --force-node-api-uncaught-exceptions-policy --stack-trace-limit --print --experimental-vm-modules --global-search-paths --experimental-fetch --inspect-publish-uid --debug-arraybuffer-allocations --jitless --tls-min-v1.0 --extra-info-on-fatal-exception --huge-max-old-generation-size --experimental-specifier-resolution --report-signal --insecure-http-parser --heapsnapshot-signal --policy-integrity --trace-sync-io --conditions --trace-uncaught --cpu-prof-name --experimental-repl-await --v8-options --tls-min-v1.1 --tls-max-v1.2 --check --cpu-prof-dir --frozen-intrinsics --force-context-aware --zero-fill-buffers --experimental-wasi-unstable-preview1 -p --debug-port --print <arg> --debug-brk= -pe --prof-process --inspect-brk= --es-module-specifier-resolution --trace-events-enabled --report-directory --inspect-brk-node= -e -h -v -r --security-reverts -i -c --inspect= --debug= -C --loader' -- "${cur_word}") )
    return 0
  else
    COMPREPLY=( $(compgen -f "${cur_word}") )
    return 0
  fi
}
complete -o filenames -o nospace -o bashdefault -F _node_complete node node_g
