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