pub fn parse_subprocess_cli(
raw: Vec<String>,
) -> Result<(Option<ChildKind>, Vec<String>)>Expand description
Parse workspace/subprocess CLI arguments for the IPC runner.
This helper recognizes the subprocess marker [ctb_utilities::ipc::IPC_ARG]
and returns:
Some(kind)when invoked as a subprocess (e.g.--runtime)Nonewhen invoked as the workspace (normal parent process)
It also returns the remaining non-IPC arguments:
- for subprocesses: arguments after the POSIX
--separator - for workspace: all arguments (excluding the program name)