diff options
Diffstat (limited to 'ogclient')
-rwxr-xr-x | ogclient | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -50,6 +50,8 @@ def create_parser(): parser.add_argument('--debug', default=False, action='store_true', help='enables debug log level') + parser.add_argument('--server-ip', default="", + help='Server IP address override') return parser @@ -75,6 +77,9 @@ def main(): print('Error: Parsing configuration file') return 0 + if args.server_ip: + CONFIG['opengnsys']['ip'] = args.server_ip + MODE = CONFIG['opengnsys']['mode'] URL = CONFIG['opengnsys']['url'] LOGLEVEL = CONFIG['opengnsys']['log'] |