diff options
author | Matěj Cepl <mcepl@cepl.eu> | 2019-08-06 17:35:38 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@cepl.eu> | 2019-08-06 17:36:36 +0200 |
commit | 04b10f2aad172fd73bfbb5408ca8f5968831e59d (patch) | |
tree | 05aeca9b7ae8ba05e3ee0b516677964777caf9ce /json_diff.py | |
parent | 4e907ac303207ae82a7c89288d11ebadd9b46c3a (diff) | |
download | json_diff-04b10f2aad172fd73bfbb5408ca8f5968831e59d.tar.gz |
Allow empty formal arguments of main()
Diffstat (limited to 'json_diff.py')
-rwxr-xr-x | json_diff.py | 4 |
1 files 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) |