diff --git a/rust2rpm/inspector.py b/rust2rpm/inspector.py index 60582ab..4b65aa4 100644 --- a/rust2rpm/inspector.py +++ b/rust2rpm/inspector.py @@ -66,6 +66,7 @@ def main(): fgroup.add_argument("-a", "--all-features", action="store_true", help="Activate all features") fgroup.add_argument("-f", "--features", default="default", help="Feature(s) to work on (comma-separated)") parser.add_argument("--vendor", action="store_true", help="Print vendoring provides (even when not vendored)") + parser.add_argument("--include-workspaces", action="store_true", help="Include workspaces in the analysis") parser.add_argument("-p", "--path", help="Path to the source project") parser.add_argument("file", nargs="*", help="Path(s) to Cargo.toml") args = parser.parse_args() @@ -119,7 +120,7 @@ def main(): for f in files: data = set() - mds = Metadata.from_file(f) + mds = Metadata.from_file(f, include_members=args.include_workspaces) for md in mds: data.update(process_metadata(md)) for line in data: