From 88399128322bf2ad46cd97b2f8df7d550c4d6ffb Mon Sep 17 00:00:00 2001 From: Alberto Planas Date: Tue, 13 Oct 2020 18:50:20 +0200 Subject: [PATCH] inspector: rename force flag --- rust2rpm/inspector.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust2rpm/inspector.py b/rust2rpm/inspector.py index 36ae900..1105837 100644 --- a/rust2rpm/inspector.py +++ b/rust2rpm/inspector.py @@ -57,7 +57,7 @@ def main(): fgroup = parser.add_mutually_exclusive_group() 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("--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("file", nargs="*", help="Path(s) to Cargo.toml") args = parser.parse_args() @@ -105,7 +105,7 @@ def main(): if args.provides_vendor: # Print the vendoring providers only if the 'vendor' # directory is present - if args.force or os.path.isdir('vendor'): + if args.vendor or os.path.isdir('vendor'): data.update(md.resolved_dependencies()) return data