aboutsummaryrefslogtreecommitdiffstats
path: root/delf.py
diff options
context:
space:
mode:
Diffstat (limited to 'delf.py')
-rwxr-xr-xdelf.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/delf.py b/delf.py
index b152bd0..27b574f 100755
--- a/delf.py
+++ b/delf.py
@@ -4,6 +4,7 @@ import code
import signal
from load import premain, CLIArgParser, SigHandler_SIGINT
+
def main():
argparser = CLIArgParser()
if argparser.args.dbg:
@@ -11,7 +12,8 @@ def main():
premain(argparser)
except Exception as e:
print(e.__doc__)
- if e.message: print(e.message)
+ if e.message:
+ print(e.message)
signal.signal(signal.SIGINT, SigHandler_SIGINT)
variables = globals().copy()
variables.update(locals())
@@ -20,5 +22,6 @@ def main():
else:
premain(argparser)
+
if __name__ == "__main__":
main()