ycmd uses a random free port when running vim-free

Previously the default was 6666, which was temporary.
This commit is contained in:
Strahinja Val Markovic 2013-10-25 13:11:13 -07:00
parent f20448d89e
commit 2b8ee37bf5

View File

@ -51,7 +51,8 @@ def Main():
parser = argparse.ArgumentParser() parser = argparse.ArgumentParser()
parser.add_argument( '--host', type = str, default = 'localhost', parser.add_argument( '--host', type = str, default = 'localhost',
help = 'server hostname') help = 'server hostname')
parser.add_argument( '--port', type = int, default = 6666, # Default of 0 will make the OS pick a free port for us
parser.add_argument( '--port', type = int, default = 0,
help = 'server port') help = 'server port')
parser.add_argument( '--log', type = str, default = 'info', parser.add_argument( '--log', type = str, default = 'info',
help = 'log level, one of ' help = 'log level, one of '