Skip to main content

parse_migrate_args

Function parse_migrate_args 

Source
pub fn parse_migrate_args(args: &[String]) -> Result<MigrateOptions, String>
Expand description

Parse migrate-embeddings’ flags.

Hand-rolled for the same reason as --version and compile-stdin in the binary: this crate ships one binary and does not carry clap for it.

§Errors

A message naming the offending flag when it is unknown, when a value is missing, or when --strategy is not one of the three arbitrated regimes.