USAGE
    .\sys-mig.exe [-c {stmt|sbom|mvn_analyse}] [-cf INPUT_PATH] [-d INPUT_PATH] [-src INPUT_PATH] [-o INPUT_PATH]
                  [-t FILE_PATH] [-f {html|json}] [-e {version|checkOutPath}] [-l {0,1,2,3}]

OPTIONS
    -h, --help
        Show this help message and exit.

    -c, --command {stmt,sbom,mvn_analyse}
        Type of information to be collected. The options are stmt (default), sbom, and mvn_analyse.
        stmt generates a CSV report, sbom generates a detailed HTML or JSON report, and mvn_analyse generates an HTML report.

    -cf, --config <file>
        Configuration file path of the input parameter. The default file path is ./resources/sysmig_default.conf.

    -d, --directory <path> [<path> ...]
        Directory of scanning for collected information. You can enter multiple directories (the current directory by default).
        Separate multiple directories with spaces(Example: -d /home/jar /home/ear).
        If the name of the folder to be scanned contains spaces, use single quotation marks(') to mark the parameter(Example: -d 'D:\a bc').

    -src, --source <Path>[<Path>...]
        This parameter is used in stmt mode. It indicates the directories scanned to collect the number of source code lines. You can enter multiple directories.
        Separate directories with spaces, for example, -src /home/example1 /home/example2.
        Supported source code languages: Java, C, C++, Python, Shell, JS, HTML and CSS.
        If the name of a directory to be scanned contains spaces, use single quotation marks (') to mark the parameter, for example, -src '/home/example 1'.

    -o, --output <path>
        Report output directory. (The default is the report directory where the binary file is located.)

    -t, --template <file>
        This parameter is used in stmt mode. It indicates the path of the CSV report template. By default, the CSV report is generated based on the built-in template.
        For details about the template, see ./resources/stmt_template_default.csv.
        Built-in variables used in the template include ${cpuCores}, ${memory}, ${middleware}, ${dbType}, ${osSystem}, ${ip}, and ${hostName}, and they cannot be modified.

    -s, --show <path>
        Use this parameter in stmt mode to display the middleware and database source paths.

    -f, --format {html,json} [{html,json} ...]
        This parameter is used in sbom mode. It indicates the formats of the generated report. The options are HTML and json. You can select either or both of the report formats. The default value is html json.
        Separate report formats with spaces. Example: -f html json.

    -e, --exclude-fields {version,checkOutPath} [{version,checkOutPath} ...]
        This parameter is used in sbom mode. It excludes the component version (Version) or checkout path (checkOutPath) or both.
        Separate multiple options with spaces. Example: -e version checkOutPath.

    -l, --log-level {0,1,2,3}
        Log level. The options are 0(DEBUG), 1(INFO), 2(WARNING), and 3(ERROR). The default value is 1(INFO).

    -v, --version
        Program version information.

EXAMPLE
    .\sys-mig.exe -c stmt -d D:\jar -src D:\example1 D:\example2 -o D:\report -t D:\template.csv -f html -l 1
    .\sys-mig.exe -c sbom -cf D:\config.conf -d D:\jar -o D:\report -f html -l 1
    .\sys-mig.exe -c mvn_analyse -cf D:\config.conf -d D:\mvn_project -o D:\report -l 1