Function arg_to_snap_path

Source
fn arg_to_snap_path<'a>(
    arg: &'a str,
    default_path: &'a str,
) -> (Option<&'a str>, &'a str)
Expand description

Split argument into snapshot id and path

§Arguments

  • arg - argument to split
  • default_path - default path if no path is given

§Returns

A tuple of the snapshot id and the path