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