Lines Matching defs:options
53 def telnetserver(options):
58 if options.pidfile:
63 with open(options.pidfile, "w") as f:
66 local_bind = (HOST, options.port)
83 Negotiates options before reading data.
279 # The start of sub-negotiation options.
281 # The end of sub-negotiation options.
317 def setup_logging(options):
319 Set up logging from the command line options
329 if options.logfile:
330 handler = ClosingFileHandler(options.logfile)
338 if options.verbose:
364 # Get the options from the user.
365 options = get_options()
367 # Setup logging using the user options
368 setup_logging(options)
372 rc = telnetserver(options)
377 if options.pidfile and os.path.isfile(options.pidfile):
378 os.unlink(options.pidfile)