message: feat(pkgid): suggestion for bad parsing
diff: @@ -87,8 +87,11 @@ impl PackageIdSpec {
  where
  I: IntoIterator<Item = PackageId>,
  {
  - let spec = PackageIdSpec::parse(spec)
  - .chain_err(|| anyhow::format_err!("invalid package ID specification: `{}`", spec))?;
  + let i: Vec<_> = i.into_iter().collect();
  + let spec = PackageIdSpec::parse(spec).chain_err(|| {
  + let suggestion = lev_distance::closest_msg(spec, i.iter(), |id| id.name().as_str());
  + anyhow::format_err!("invalid package ID specification: `{}`{}", spec, suggestion)
  + })?;
  spec.query(i)
  }
  