Skip to main content

launch_args_from_command_line

Function launch_args_from_command_line 

Source
pub fn launch_args_from_command_line(
    tokens: impl IntoIterator<Item = String>,
    debuggable: bool,
) -> LaunchArgs
Expand description

Parses --name=value (text) and bare --name (true) out of a command line.

A lone -- ends parsing, and everything that is not an option is ignored, so an app that also takes positional arguments keeps them to itself. This is deliberately the smallest convention that round-trips the Android extras: --ez f true is --f or --f=true, --ei n 3 is --n=3.