_node_complete() {
  local cur_word options
  cur_word="${COMP_WORDS[COMP_CWORD]}"
  if [[ "${cur_word}" == -* ]] ; then
    COMPREPLY=( $(compgen -W '--http-parser --expose-internals --experimental-abortcontroller --policy-integrity --heapsnapshot-signal --insecure-http-parser --report-signal --experimental-policy --experimental-modules --experimental-global-webcrypto --trace-deprecation --pending-deprecation --tls-min-v1.3 --cpu-prof --cpu-prof-interval --heap-prof --debug-brk --throw-deprecation --experimental-report --trace-atomics-wait --use-largepages --use-bundled-ca --inspect-port --interactive --prof --trace-warnings --trace-event-file-pattern --addons --disable-proto --tls-cipher-list --update-assert-snapshot --preserve-symlinks --test-name-pattern --secure-heap --icu-data-dir --secure-heap-min --dns-result-order --prof-process --v8-pool-size --require --snapshot-blob --report-compact --perf-basic-prof --experimental-worker --version --watch --tls-min-v1.2 --openssl-config --inspect-brk --preserve-symlinks-main --heap-prof-name --test-only --title --security-revert --use-openssl-ca --experimental-network-imports --track-heap-objects --trace-sigint --force-async-hooks-checks --completion-bash --report-dir --node-memory-debug --input-type --openssl-legacy-provider --report-on-fatalerror --experimental-wasm-modules --openssl-shared-config --force-fips --max-http-header-size --experimental-wasi-unstable-preview1 --zero-fill-buffers --force-context-aware --enable-source-maps --heapsnapshot-near-heap-limit --tls-keylog --experimental-vm-modules --print --heap-prof-dir --unhandled-rejections --warnings --experimental-top-level-await --experimental-json-modules --trace-event-categories --eval --heap-prof-interval --napi-modules --report-on-signal --watch-path --build-snapshot --experimental-import-meta-resolve --test --perf-basic-prof-only-functions --disallow-code-generation-from-strings --inspect-brk-node --test-udp-no-try-send --deprecation --debug --experimental-loader --perf-prof --trace-tls --tls-max-v1.3 --abort-on-uncaught-exception --node-snapshot --perf-prof-unwinding-info --redirect-warnings --report-uncaught-exception --interpreted-frames-native-stack --diagnostic-dir --enable-fips --force-node-api-uncaught-exceptions-policy --stack-trace-limit --experimental-specifier-resolution --huge-max-old-generation-size --global-search-paths --experimental-fetch --inspect-publish-uid --debug-arraybuffer-allocations --jitless --help --report-filename --verify-base-objects --cpu-prof-dir --frozen-intrinsics --experimental-global-customevent --check --tls-min-v1.0 --extra-info-on-fatal-exception --inspect --max-old-space-size --trace-exit --trace-sync-io --conditions --trace-uncaught --cpu-prof-name --v8-options --tls-min-v1.1 --experimental-repl-await --tls-max-v1.2 -p --debug-port --print <arg> --debug-brk= -pe --prof-process --inspect-brk= --es-module-specifier-resolution --trace-events-enabled --report-directory --inspect-brk-node= -e -h -v -r --security-reverts -i -c --inspect= --debug= -C --loader' -- "${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
