mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 03:29:28 +01:00
pylink-contribdl: implement --yes
This commit is contained in:
parent
c479dd1753
commit
3f4bf72248
@ -38,6 +38,7 @@ if __name__ == '__main__':
|
|||||||
urls[target] = url
|
urls[target] = url
|
||||||
print(url, '=>', '%s' % os.path.join(os.getcwd(), target))
|
print(url, '=>', '%s' % os.path.join(os.getcwd(), target))
|
||||||
|
|
||||||
|
if not args.yes:
|
||||||
text = input('Continue (Y)es/(n)o? ').lower()
|
text = input('Continue (Y)es/(n)o? ').lower()
|
||||||
if not strtobool(text):
|
if not strtobool(text):
|
||||||
sys.exit(2)
|
sys.exit(2)
|
||||||
|
Loading…
Reference in New Issue
Block a user