MCPcopy
hub / github.com/ycm-core/YouCompleteMe / ParseArguments

Function ParseArguments

run_tests.py:41–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39
40
41def ParseArguments():
42 parser = argparse.ArgumentParser()
43 parser.add_argument( '--skip-build', action = 'store_true',
44 help = 'Do not build ycmd before testing' )
45 parser.add_argument( '--coverage', action = 'store_true',
46 help = 'Enable coverage report' )
47 parser.add_argument( '--no-flake8', action = 'store_true',
48 help = 'Do not run flake8' )
49 parser.add_argument( '--dump-path', action = 'store_true',
50 help = 'Dump the PYTHONPATH required to run tests '
51 'manually, then exit.' )
52
53 parsed_args, unittest_args = parser.parse_known_args()
54
55 if 'COVERAGE' in os.environ:
56 parsed_args.coverage = ( os.environ[ 'COVERAGE' ] == 'true' )
57
58 return parsed_args, unittest_args
59
60
61def BuildYcmdLibs( args ):

Callers 1

MainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected