_node_complete() {
  local cur_word options
  cur_word="${COMP_WORDS[COMP_CWORD]}"
  if [[ "${cur_word}" == -* ]] ; then
    COMPREPLY=( $(compgen -W '--run --experimental-sea-config --env-file-if-exists --report-uncaught-exception --cpu-prof-name --max-http-header-size --redirect-warnings --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 --trace-tls --permission --experimental-loader --test-coverage-functions --heapsnapshot-signal --experimental-sqlite --entry-url --trace-atomics-wait --experimental-detect-module --allow-addons --experimental-global-webcrypto --http-parser --experimental-fetch --trace-promises --experimental-abortcontroller --experimental-report --experimental-modules --test-skip-pattern --test-concurrency --disable-sigusr1 --allow-wasi --test-coverage-exclude --expose-gc --diagnostic-dir --force-async-hooks-checks --debug --allow-fs-read --build-snapshot --allow-child-process --experimental-async-context-frame --experimental-vm-modules --experimental-wasi-unstable-preview1 --interactive --inspect-publish-uid --inspect-brk --experimental-require-module --experimental-default-config-file --check --inspect --inspect-port --build-snapshot-config --test-only --dns-result-order --network-family-autoselection --report-signal --abort-on-uncaught-exception --max-old-space-size --enable-etw-stack-walking --perf-basic-prof --test-force-exit --deprecation --inspect-brk-node --tls-min-v1.0 --napi-modules --throw-deprecation --trace-deprecation --eval --heap-prof-dir --experimental-default-type --trace-env-native-stack --report-exclude-network --print --allow-worker --secure-heap-min --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 --require --experimental-top-level-await --experimental-webstorage --openssl-legacy-provider --v8-pool-size --force-fips --experimental-shadow-realm --test-reporter-destination --trace-env-js-stack --trace-event-file-pattern --trace-event-categories --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 --test-reporter --experimental-eventsource --secure-heap --experimental-strip-types --test-coverage-lines --experimental-test-isolation --trace-env --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 --track-heap-objects --version --frozen-intrinsics --harmony-shadow-realm --heap-prof-name --watch-preserve-output --insecure-http-parser --force-node-api-uncaught-exceptions-policy --prof --report-exclude-env --expose-internals --completion-bash --preserve-symlinks --test-udp-no-try-send --tls-max-v1.3 --tls-keylog --pending-deprecation --tls-min-v1.2 --stack-trace-limit --extra-info-on-fatal-exception --debug-brk --tls-max-v1.2 --enable-source-maps --jitless --input-type --preserve-symlinks-main --allow-fs-write --disable-warning --heapsnapshot-near-heap-limit --max-semi-space-size --force-context-aware --perf-prof-unwinding-info --inspect-wait --experimental-transform-types --perf-prof --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
