Add main function for command line tool
you can download source code and use python main.py [options]
to run the tool, [options]
include
-
-f <filepath>
: specify a c file to parse. -
-d <dir>
: specify a dir containing c files to be parsed. Note that you should specify one of-f
and-d
, and do not specify-f
and-d
at the same time. -
-c <calleeInfos>
: specify calleeInfo.json file path, default to resources/calleeInfos.json. -
-o <output_dir>
: specify a dir store outputresult.json
, if not specified, it would be placed in the same path as input file or files.
Also, you may still download python package and install as in v1.0