pub fn parse_ops(
args: Vec<Vec<u8>>,
host: &dyn Host,
) -> Result<(Vec<Op>, Vec<Vec<u8>>), CliError>Expand description
Splits the command line into operations and the command.
--args FD is spliced in place as bubblewrap does, and --perms is
attached to the next entry-creating option.
§Arguments
args- Raw argument bytes,argv[0]excluded.host- The process whose descriptor--argsnames.
§Returns
The operations in order and the command (possibly empty).
§Errors
CliError::Usage on an unknown option or a missing argument.