Update cli.py

This commit is contained in:
Akash 2020-07-22 17:12:44 +05:30 committed by GitHub
parent 93f7dfdaf9
commit 78a608db50
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,7 +70,7 @@ def main():
args = parser.parse_args()
if not args.url:
if not args.url and not args.version:
print("Specify an URL using \"--url https://mywebiste.com\". Use --help for help.")
return
@ -97,7 +97,7 @@ def main():
elif args.version:
print(__version__)
else:
print("Usage: youtube-dl [OPTIONS] URL [URL...].\
print("Usage: waybackpy [OPTIONS] --url [URL...] --user_agent [USER AGENT].\
\nwaybackpy: error: You must provide at least one URL. See --help\
\nLatest docs and version available at https://github.com/akamhy/waybackpy")