← centrs docs

usage/stdin-ignored

stdin was redirected but the input came from the positional argument, so anything piped in was not analyzed.

This is a warning, not an error: the analysis ran and its result is exactly what the arguments asked for. What the warning reports is that a second possible input source was present and lost.

Fix

Name the source you meant:

cat script.rsc | centrs explain --file -  # analyze stdin
centrs explain '/ip/route print'          # analyze the positional

The live form spells the same thing (… | centrs explain edge1 --file -) and is already parsed, but it is refused with usage/not-implemented until the phase-2 live probes land — so it is not a fix you can apply today.

explain reads ambient stdin only when no positional could be the input, so a positional always wins. It cannot check whether the pipe actually carries bytes without consuming fd 0, which is why the collision is reported rather than resolved. See commands/explain/README.md for the positional grammar.