|
4 | 4 | # SPDX-License-Identifier: Apache-2.0 |
5 | 5 | from fosslight_util.help import PrintHelpMsg, print_package_version |
6 | 6 |
|
7 | | -_HELP_MESSAGE_SOURCE = """ |
8 | | - Usage: fosslight_source [option1] <arg1> [option2] <arg2>... |
| 7 | +_HELP_MESSAGE_SOURCE_SCANNER = """ |
| 8 | + FOSSLight Source Scanner Usage: fosslight_source [option1] <arg1> [option2] <arg2>... |
9 | 9 |
|
10 | | - FOSSLight Source uses ScanCode, a source code scanner, to detect the copyright and license phrases |
11 | | - contained in the file. Some files (ex- build script), binary files, directory and files in specific |
| 10 | + FOSSLight Source Scanner uses ScanCode and SCANOSS, the source code scanners, to detect |
| 11 | + the copyright and license phrases contained in the file. |
| 12 | + Some files (ex- build script), binary files, directory and files in specific |
12 | 13 | directories (ex-test) are excluded from the result. |
13 | | - And removes words such as “-only” and “-old-style” from the license name to be printed. |
14 | | - The output result is generated in Excel format. |
| 14 | +
|
| 15 | + FOSSLight Convert Usage: fosslight_convert [option1] <arg1> [option2] <arg2>... |
| 16 | +
|
| 17 | + FOSSLigtht Converter converts the result of ScanCode in json format into FOSSLight Report format. |
15 | 18 |
|
16 | 19 | Options: |
17 | 20 | Optional |
18 | 21 | -p <source_path>\t Path to analyze source (Default: current directory) |
19 | 22 | -h\t\t\t Print help message |
20 | 23 | -v\t\t\t Print FOSSLight Source Scanner version |
21 | | - -j\t\t\t Generate raw result of scanners in json format |
22 | 24 | -m\t\t\t Print additional information for scan result on separate sheets |
23 | 25 | -o <output_path>\t Output path (Path or file name) |
24 | 26 | -f <format>\t\t Output file format (excel, csv, opossum, yaml) |
| 27 | + Options only for FOSSLight Source Scanner |
25 | 28 | -s <scanner>\t Select which scanner to be run (scancode, scanoss, all) |
| 29 | + -j\t\t\t Generate raw result of scanners in json format |
26 | 30 | -t <float>\t\t Stop scancode scanning if scanning takes longer than a timeout in seconds.""" |
27 | 31 |
|
28 | | -_HELP_MESSAGE_CONVERT = """ |
29 | | - Usage: fosslight_convert [option1] <arg1> [option2] <arg2>... |
30 | | -
|
31 | | - FOSSLigtht_convert converts the result of executing ScanCode in json format into FOSSLight Report format. |
32 | | -
|
33 | | - Options: |
34 | | - Optional |
35 | | - -p <path_dir>\t\t Path of ScanCode json files (Default: current directory) |
36 | | - -h\t\t\t\t Print help message |
37 | | - -v\t\t\t\t Print FOSSLight Source Scanner version |
38 | | - -m\t\t\t\t Print the Matched text for each license on a separate sheet |
39 | | - -o <output_path>\t\t Output path |
40 | | - \t\t\t\t (If you want to generate the specific file name, add the output path with file name.) |
41 | | - -f <format>\t\t\t Output file format (excel, csv, opossum)""" |
42 | | - |
43 | 32 |
|
44 | 33 | def print_version(pkg_name): |
45 | 34 | print_package_version(pkg_name, "FOSSLight Source Scanner Version") |
46 | 35 |
|
47 | 36 |
|
48 | | -def print_help_msg_source(): |
49 | | - helpMsg = PrintHelpMsg(_HELP_MESSAGE_SOURCE) |
50 | | - helpMsg.print_help_msg(True) |
51 | | - |
52 | | - |
53 | | -def print_help_msg_convert(): |
54 | | - helpMsg = PrintHelpMsg(_HELP_MESSAGE_CONVERT) |
| 37 | +def print_help_msg_source_scanner(): |
| 38 | + helpMsg = PrintHelpMsg(_HELP_MESSAGE_SOURCE_SCANNER) |
55 | 39 | helpMsg.print_help_msg(True) |
0 commit comments