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