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