@@ -348,10 +348,13 @@ def build_parser(self):
348348 help = "Send setting to DAPAccess layer." )
349349 serverParser .add_argument ("-p" , "--port" , dest = "port_number" , type = int , default = None ,
350350 help = "Set the server's port number (default 5555)." )
351- serverParser .add_argument ("--local-only" , dest = "serve_local_only" , default = False , action = "store_true" ,
352- help = "Allow remote TCP/IP connections (default is yes)." )
351+ serverParser .add_argument ("--allow-remote" , dest = "serve_local_only" , default = None , action = "store_false" ,
352+ help = "Allow remote TCP/IP connections (default is no)." )
353+ serverParser .add_argument ("--local-only" , default = False , action = "store_true" ,
354+ help = "Ignored and deprecated. Server is local only by default. Use --alow-remote to enable remote "
355+ "connections." )
353356 serverParser .add_argument ("-u" , "--uid" , dest = "unique_id" ,
354- help = "Serve only the specified probe. Can be used multiple times ." )
357+ help = "Serve the specified probe." )
355358 serverParser .set_defaults (verbose = 0 , quiet = 0 )
356359
357360 self ._parser = parser
@@ -882,7 +885,9 @@ def do_server(self):
882885 # probe, we don't set it in the session because we don't want the board, target, etc objects
883886 # to be created.
884887 session_options = convert_session_options (self ._args .options )
885- session = Session (probe = None , options = session_options )
888+ session = Session (probe = None ,
889+ serve_local_only = self ._args .serve_local_only ,
890+ options = session_options )
886891
887892 # The ultimate intent is to serve all available probes by default. For now we just serve
888893 # a single probe.
0 commit comments