Update cli.py
This commit is contained in:
parent
93f7dfdaf9
commit
78a608db50
@ -70,7 +70,7 @@ def main():
|
|||||||
|
|
||||||
args = parser.parse_args()
|
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.")
|
print("Specify an URL using \"--url https://mywebiste.com\". Use --help for help.")
|
||||||
return
|
return
|
||||||
|
|
||||||
@ -97,7 +97,7 @@ def main():
|
|||||||
elif args.version:
|
elif args.version:
|
||||||
print(__version__)
|
print(__version__)
|
||||||
else:
|
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\
|
\nwaybackpy: error: You must provide at least one URL. See --help\
|
||||||
\nLatest docs and version available at https://github.com/akamhy/waybackpy")
|
\nLatest docs and version available at https://github.com/akamhy/waybackpy")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user