pub fn parse_spec(command: &str, args: &[String]) -> Option<PackageSpec>Expand description
Find the package spec an interpreter entry will run.
Returns None for anything whose shape isn’t unambiguous — node server.js, python -m pkg, or a runner invoked with a flag that takes a
separate value (npx -p a b). Guessing wrong here would mean rewriting the
wrong argument, so an unrecognised shape is left alone.