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