From 04b10f2aad172fd73bfbb5408ca8f5968831e59d Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Tue, 6 Aug 2019 17:35:38 +0200 Subject: Allow empty formal arguments of main() --- json_diff.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/json_diff.py b/json_diff.py index 70950ab..7fb1922 100755 --- a/json_diff.py +++ b/json_diff.py @@ -33,7 +33,7 @@ import logging from optparse import OptionParser __author__ = "Matěj Cepl" -__version__ = "1.3.7" +__version__ = "1.3.8" logging.basicConfig(format='%(levelname)s:%(funcName)s:%(message)s', level=logging.INFO) @@ -329,7 +329,7 @@ class Comparator(object): return self._filter_results(result) -def main(sys_args): +def main(sys_args=None): """Main function, to process command line arguments etc.""" usage = "usage: %prog [options] old.json new.json" parser = OptionParser(usage=usage) -- cgit