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