inspector: dont collect all workspaces by default
This commit is contained in:
parent
1c2247ea93
commit
9269105f5b
1 changed files with 2 additions and 1 deletions
|
@ -66,6 +66,7 @@ def main():
|
||||||
fgroup.add_argument("-a", "--all-features", action="store_true", help="Activate all features")
|
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)")
|
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("--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("-p", "--path", help="Path to the source project")
|
||||||
parser.add_argument("file", nargs="*", help="Path(s) to Cargo.toml")
|
parser.add_argument("file", nargs="*", help="Path(s) to Cargo.toml")
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
@ -119,7 +120,7 @@ def main():
|
||||||
|
|
||||||
for f in files:
|
for f in files:
|
||||||
data = set()
|
data = set()
|
||||||
mds = Metadata.from_file(f)
|
mds = Metadata.from_file(f, include_members=args.include_workspaces)
|
||||||
for md in mds:
|
for md in mds:
|
||||||
data.update(process_metadata(md))
|
data.update(process_metadata(md))
|
||||||
for line in data:
|
for line in data:
|
||||||
|
|
Loading…
Reference in a new issue