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