diff options
Diffstat (limited to 'test/vcpe/loop.py')
-rwxr-xr-x | test/vcpe/loop.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/test/vcpe/loop.py b/test/vcpe/loop.py index 3dc1948f8..1636e397c 100755 --- a/test/vcpe/loop.py +++ b/test/vcpe/loop.py @@ -2,21 +2,21 @@ import time import logging -import json -import mysql.connector -import ipaddress -import re -import sys -import base64 -from vcpecommon import * -import preload +from vcpecommon import * # pylint: disable=W0614 import commands import vcpe_custom_service +import argparse +# Run the script with [-h|--help] to get usage info logging.basicConfig(level=logging.INFO, format='%(message)s') -cpecommon = VcpeCommon() +parser = argparse.ArgumentParser(formatter_class= + argparse.ArgumentDefaultsHelpFormatter) +parser.add_argument('--config',help='Configuration file path',default=None) +args = parser.parse_args() + +cpecommon = VcpeCommon(cfg_file=args.config) custom = vcpe_custom_service.CustomService(cpecommon) nodes=['mux'] |