3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-23 19:19:31 +01:00

pylink-contribdl: implement --yes

This commit is contained in:
James Lu 2016-12-05 00:39:09 -08:00
parent c479dd1753
commit 3f4bf72248

View File

@ -38,9 +38,10 @@ if __name__ == '__main__':
urls[target] = url
print(url, '=>', '%s' % os.path.join(os.getcwd(), target))
text = input('Continue (Y)es/(n)o? ').lower()
if not strtobool(text):
sys.exit(2)
if not args.yes:
text = input('Continue (Y)es/(n)o? ').lower()
if not strtobool(text):
sys.exit(2)
print()
for filename, url in urls.items():