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