patch for cli

This commit is contained in:
Akash 2020-07-24 16:09:47 +05:30 committed by GitHub
parent 77effcf649
commit a2812fb56f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,7 +94,9 @@ def parse_args(argv):
parser.add_argument("-MIN", "--minute", type=int, help="Minute in integer. For use with --near.")
return parser.parse_args(argv[1:])
def main(argv):
def main(argv=None):
if args is None:
args = sys.argv
args = parse_args(argv)
output = args_handler(args)
print(output)