pub fn plan(args: &[String], version: &str) -> Result<Invocation, Outcome>
Reads the command line. Ok names the sources to read before complete; Err is the whole outcome when there is nothing to read: the version or the usage text asked for, or bad usage. version is what --version prints.
Ok
complete
Err
version
--version
The outcome, when the command ends without reading anything.