diff --git a/jwt/__main__.py b/jwt/__main__.py index 47e63e9d..f49c5a00 100644 --- a/jwt/__main__.py +++ b/jwt/__main__.py @@ -60,6 +60,7 @@ def encode_payload(args): print(e) sys.exit(1) + def decode_payload(args): try: if not sys.stdin.isatty(): @@ -76,6 +77,7 @@ def decode_payload(args): print(e) sys.exit(1) + def main(): usage = ''' @@ -162,5 +164,6 @@ def main(): arg_parser.print_help() sys.exit(1) + if __name__ == '__main__': main()