summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xogclient5
1 files changed, 5 insertions, 0 deletions
diff --git a/ogclient b/ogclient
index 39aa3a6..5abb1b0 100755
--- a/ogclient
+++ b/ogclient
@@ -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']