inspector: rename force flag

This commit is contained in:
Alberto Planas 2020-10-13 18:50:20 +02:00
parent ccd5b3aa66
commit 8839912832

View file

@ -57,7 +57,7 @@ def main():
fgroup = parser.add_mutually_exclusive_group() fgroup = parser.add_mutually_exclusive_group()
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("--force", action="store_true", help="Force print vendoring provides") parser.add_argument("--vendor", action="store_true", help="Print vendoring provides (even when not vendored)")
parser.add_argument("-p", "--path", help="Path where the source project is living") parser.add_argument("-p", "--path", help="Path where the source project is living")
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()
@ -105,7 +105,7 @@ def main():
if args.provides_vendor: if args.provides_vendor:
# Print the vendoring providers only if the 'vendor' # Print the vendoring providers only if the 'vendor'
# directory is present # directory is present
if args.force or os.path.isdir('vendor'): if args.vendor or os.path.isdir('vendor'):
data.update(md.resolved_dependencies()) data.update(md.resolved_dependencies())
return data return data