ycmd loads default options when none provided

This commit is contained in:
Strahinja Val Markovic 2013-10-25 13:26:33 -07:00
parent 2b8ee37bf5
commit 17d149e899

View File

@ -71,10 +71,11 @@ def Main():
logging.basicConfig( format = '%(asctime)s - %(levelname)s - %(message)s',
level = numeric_level )
options = None
if args.options_file:
options = json.load( open( args.options_file, 'r' ) )
options = ( json.load( open( args.options_file, 'r' ) )
if args.options_file
else user_options_store.DefaultOptions() )
user_options_store.SetAll( options )
# This ensures that ycm_core is not loaded before extra conf
# preload was run.
YcmCoreSanityCheck()