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