From 18cbd2fd30f61449c09b458700986807470fce98 Mon Sep 17 00:00:00 2001 From: Akash <64683866+akamhy@users.noreply.github.com> Date: Fri, 24 Jul 2020 16:10:29 +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 04d7670..1ad7623 100644 --- a/waybackpy/cli.py +++ b/waybackpy/cli.py @@ -95,8 +95,8 @@ def parse_args(argv): return parser.parse_args(argv[1:]) def main(argv=None): - if args is None: - args = sys.argv + if argv is None: + argv = sys.argv args = parse_args(argv) output = args_handler(args) print(output)