Skip to main content

parse

Function parse 

Source
pub fn parse(args: Vec<OsString>, host: &dyn Host) -> Result<Config, CliError>
Expand description

Parses bubblewrap-style arguments (without argv[0]) into a launchable config.

§Arguments

  • args - Command-line arguments as bubblewrap would receive them.
  • host - The process the command line is interpreted for: bind sources are its paths, descriptors are its descriptors, the environment is its.

§Returns

A Config whose root is a freshly materialized directory.

§Errors

CliError::Exit after --help/--version, CliError::Usage for unknown options, missing arguments, unreadable descriptors or overlays.