renaming etherdump -> pppadump

This commit is contained in:
gauthiier
2021-12-06 17:34:16 +01:00
parent a1c696a538
commit aa246254f4
31 changed files with 47 additions and 75 deletions
+3 -3
View File
@@ -4,7 +4,7 @@ from __future__ import print_function
import sys
usage = """Usage:
etherdump CMD
pppadump CMD
where CMD could be:
appendmeta
@@ -28,7 +28,7 @@ where CMD could be:
status
For more information on each command try:
etherdump CMD --help
pppadump CMD --help
"""
@@ -44,7 +44,7 @@ except IndexError:
sys.exit(0)
try:
# http://stackoverflow.com/questions/301134/dynamic-module-import-in-python
cmdmod = __import__("etherdump.commands.%s" % cmd, fromlist=["etherdump.commands"])
cmdmod = __import__("pppadump.commands.%s" % cmd, fromlist=["pppadump.commands"])
cmdmod.main(args)
except ImportError as e:
print ("Error performing command '{0}'\n(python said: {1})\n".format(cmd, e))