From 78a608db503cffc6038de9547490d6b3f9e941f5 Mon Sep 17 00:00:00 2001 From: Akash <64683866+akamhy@users.noreply.github.com> Date: Wed, 22 Jul 2020 17:12:44 +0530 Subject: [PATCH] Update cli.py --- waybackpy/cli.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/waybackpy/cli.py b/waybackpy/cli.py index 4de18a3..9f15a20 100644 --- a/waybackpy/cli.py +++ b/waybackpy/cli.py @@ -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")