Function tauri::api::cli::get_matches
source · pub fn get_matches(
cli: &CliConfig,
package_info: &PackageInfo
) -> Result<Matches>
Available on crate feature
cli
only.Expand description
Gets the argument matches of the CLI definition.
This is a low level API. If the application has been built,
prefer App::get_cli_matches
.
Examples
use tauri::api::cli::get_matches;
tauri::Builder::default()
.setup(|app| {
let matches = get_matches(app.config().tauri.cli.as_ref().unwrap(), app.package_info())?;
Ok(())
});