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