diff --git a/CHANGELOG.md b/CHANGELOG.md index 5919a60..a66c762 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ## [Unreleased] +### Fixed + +- Fixed metadata error when using `--manifest-path` outside of a project folder. + +### Changed + - The `llvm-tools-preview` component was renamed to `llvm-tools` ### Changed diff --git a/src/lib.rs b/src/lib.rs index cf7b5ca..4fa4b4e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -291,6 +291,9 @@ pub fn run(tool: Tool, matches: ArgMatches) -> Result { if matches.get_flag("all-features") { metadata_command.features(CargoOpt::AllFeatures); } + if let Some(path) = matches.get_one::("manifest-path") { + metadata_command.manifest_path(path); + } let metadata = metadata_command.exec()?; if metadata.workspace_members.is_empty() { bail!("Unable to find workspace members");