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