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