# Feedback on \`cargo-add\` before its merged

**URL:** <https://internals.rust-lang.org/t/feedback-on-cargo-add-before-its-merged/16024>\
**Category:** cargo\
**Created:** [January 25, 2022, 8:32pm UTC](https://internals.rust-lang.org/t/feedback-on-cargo-add-before-its-merged/16024 "2022-01-25T20:32:25Z")\
**Posts on this page:** 1\
**Showing post:** 26

<div class="post-metadata">

**Author:** ![epage](https://sea2.discourse-cdn.com/flex002/user_avatar/internals.rust-lang.org/epage/32/3171_2.png) [@epage](https://internals.rust-lang.org/u/epage)\
**Post date:** [January 28, 2022, 2:25am UTC](https://internals.rust-lang.org/t/feedback-on-cargo-add-before-its-merged/16024/26 "2022-01-28T02:25:04Z")

</div>

As a quick update, all of the "add" workflow changes are in `master`, leaving just the "modify" workflow.

You can check out the [`-h` output](https://github.com/killercup/cargo-edit#usage) or install it via `cargo install --git https://github.com/killercup/cargo-edit cargo-edit`

Summary of UI changes:

- [`--sort` has been removed](https://github.com/killercup/cargo-edit/pull/576) as part of decoupling reformatting from adding
- [`--upgrade <policy>` has been removed](https://github.com/killercup/cargo-edit/pull/575) due to the unclear interface and low probability of need
- [`--allow-prerelease` has been removed](https://github.com/killercup/cargo-edit/pull/581) awaiting further work on our pre-release story in cargo. It wasn't marked unstable because it is a relatively small feature that seems to have limited application, so it didn't seem worth it
- [Git URLs as positional arguments has been removed](https://github.com/killercup/cargo-edit/pull/578) as detecting them is ambiguous and limits future evolution (any other kind of URLs we might want to accept)
- [`<name>@<req>` has switched to `<name>:<req>`](https://github.com/killercup/cargo-edit/pull/577) as a parallel with the pkgid syntax
- [`--vers` was removed in favor of `<name>:<req>`](https://github.com/killercup/cargo-edit/pull/584) due to being redundant and reduces the difference between the "multiple add" vs "single add" modes, making it easier to explain
- [`--git <url>` is now unstable and has been put behind `-Z git` feature flag](https://github.com/killercup/cargo-edit/pull/586) as we work out how we want to expose git support

---

_[View the full topic](https://internals.rust-lang.org/t/feedback-on-cargo-add-before-its-merged/16024)._
