Skip to main content

parse_arguments

Function parse_arguments 

Source
pub fn parse_arguments(bin_name: &str) -> Result<(Options, Vec<String>)>
Expand description

Parse command-line arguments for the cargo-* binary.

The returned Options drives workspace discovery and filtering, while the remaining Vec<String> contains the raw cargo arguments.

ยงErrors

Returns an error if the manifest path passed via --manifest-path does not exist or can not be canonicalized.