mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-19 04:47:54 +00:00
Fixes conflicting argument vs config file option.
This commit is contained in:
parent
a289c9c685
commit
ba05ca029e
@ -102,7 +102,6 @@ def parse_arguments(argv):
|
||||
parser.add_argument("--log", help="send output to logfile instead of console")
|
||||
parser.add_argument("--daemon", action="store_true", help="start as a daemon")
|
||||
parser.add_argument("--pid", help="store process pid")
|
||||
parser.add_argument("--serverdiscovery", action="store_true", help="allows the server to be discovered on the network via broadcast or multicast on 239.42.42.1")
|
||||
|
||||
args = parser.parse_args(argv)
|
||||
if args.config:
|
||||
@ -144,7 +143,6 @@ def set_config(args):
|
||||
server_config["record"] = args.record
|
||||
server_config["debug"] = str(args.debug)
|
||||
server_config["shell"] = str(args.shell)
|
||||
server_config["server_discovery"] = str(args.serverdiscovery)
|
||||
config.set_section_config("Server", server_config)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user