renaming etherdump -> pppadump
This commit is contained in:
@@ -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))
|
||||
Reference in New Issue
Block a user