_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 --experimental-inspector-network-resource --test-coverage-lines --perf-prof-unwinding-info --test-timeout --experimental-worker-inspection --napi-modules --experimental-network-inspection --experimental-shadow-realm --cpu-prof-interval --cpu-prof-name --cpu-prof-dir --preserve-symlinks --heapsnapshot-signal --test-name-pattern --interpreted-frames-native-stack --entry-url --warnings --experimental-worker --env-file --require --experimental-global-webcrypto --experimental-test-snapshots --experimental-sqlite --test-force-exit --experimental-eventsource --disable-sigusr1 --force-async-hooks-checks --experimental-websocket --allow-worker --allow-child-process --addons --permission --test-coverage-functions --experimental-detect-module --test-coverage-include --diagnostic-dir --heap-prof-interval --input-type --experimental-loader --experimental-json-modules --experimental-report --abort-on-uncaught-exception --experimental-print-required-tla --tls-keylog --experimental-require-module --disallow-code-generation-from-strings --trace-promises --inspect-brk --allow-fs-write --build-snapshot-config --throw-deprecation --experimental-wasi-unstable-preview1 --dns-result-order --inspect-brk-node --trace-exit --network-family-autoselection --max-semi-space-size --trace-env --experimental-import-meta-resolve --prof --enable-source-maps --http-parser --experimental-global-customevent --unhandled-rejections --network-family-autoselection-attempt-timeout --inspect-publish-uid --frozen-intrinsics --debug --experimental-top-level-await --pending-deprecation --max-old-space-size --interactive --report-signal --experimental-test-coverage --import --global-search-paths --trace-warnings --expose-internals --extra-info-on-fatal-exception --trace-tls --test-udp-no-try-send --tls-max-v1.3 --experimental-default-type --watch-preserve-output --max-http-header-size --trace-uncaught --watch-path --help --trace-sigint --v8-options --experimental-async-context-frame --inspect-wait --huge-max-old-generation-size --trace-env-native-stack --watch-kill-signal --inspect-port --openssl-legacy-provider --expose-gc --experimental-addon-modules --version --experimental-webstorage --verify-base-objects --report-filename --max-old-space-size-percentage --v8-pool-size --conditions --test-coverage-branches --use-bundled-ca --prof-process --node-snapshot --test-skip-pattern --report-on-signal --enable-fips --experimental-test-module-mocks --experimental-test-isolation --heap-prof --snapshot-blob --disable-proto --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 --tls-max-v1.2 --icu-data-dir --print --trace-event-categories --openssl-config --heap-prof-name --report-dir --use-openssl-ca --use-system-ca --test-only --check --test-reporter-destination --trace-require-module --experimental-strip-types --test-coverage-exclude --allow-addons --secure-heap --test-shard --experimental-global-navigator --test --test-reporter --preserve-symlinks-main --experimental-config-file --allow-fs-read --redirect-warnings --experimental-modules --trace-atomics-wait --allow-wasi --insecure-http-parser --openssl-shared-config --experimental-default-config-file --force-node-api-uncaught-exceptions-policy --report-on-fatalerror --debug-brk --localstorage-file --use-largepages --title --force-context-aware --experimental-specifier-resolution --experimental-wasm-modules --disable-warning --build-snapshot --use-env-proxy --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 --report-exclude-network --trace-env-js-stack --deprecation --stack-trace-limit --experimental-vm-modules --tls-cipher-list --experimental-transform-types --enable-etw-stack-walking --report-uncaught-exception --completion-bash --jitless --test-concurrency --experimental-fetch --report-compact --trace-sync-io --track-heap-objects --heap-prof-dir --perf-basic-prof --inspect --perf-basic-prof-only-functions --cpu-prof --heapsnapshot-near-heap-limit --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
