inspector: rename force flag
This commit is contained in:
parent
ccd5b3aa66
commit
8839912832
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue