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