|
3 | 3 | # Copyright (c) 2021 LG Electronics Inc. |
4 | 4 | # SPDX-License-Identifier: Apache-2.0 |
5 | 5 | from fosslight_util.help import PrintHelpMsg |
| 6 | +from fosslight_util.output_format import SUPPORT_FORMAT |
6 | 7 |
|
7 | | -_HELP_MESSAGE_SCANNER = """ |
| 8 | +_HELP_MESSAGE_SCANNER = f""" |
8 | 9 | FOSSLight Scanner performs open source analysis after downloading the source from URL that can be cloned by git or wget. |
9 | 10 | Instead, open source analysis and checking copyright/license rules can be performed for the local source path. |
10 | 11 | The output result is generated in OSS Report format. |
|
21 | 22 |
|
22 | 23 | Options: |
23 | 24 | -h\t\t\t Print help message |
24 | | - -p <path>\t\t Path to analyze (ex, -p {input_path}) |
| 25 | + -p <path>\t\t Path to analyze (ex, -p [input_path]) |
25 | 26 | * Compare mode input file: Two FOSSLight reports (supports excel, yaml) |
26 | | - (ex, -p {before_name}.xlsx {after_name}.xlsx) |
| 27 | + (ex, -p [before_name].xlsx [after_name].xlsx) |
27 | 28 | -w <link>\t\t Link to be analyzed can be downloaded by wget or git clone |
28 | | - -f <formats> [<format> ...]\t FOSSLight Report file format (excel, csv, opossum, yaml, spdx-tag, spdx-yaml, spdx-json, spdx-xml) |
| 29 | + -f <formats> [<format> ...]\t FOSSLight Report file format ({', '.join(SUPPORT_FORMAT)}) |
29 | 30 | * Compare mode result file: supports excel, json, yaml, html |
30 | 31 | * Multiple formats can be specified separated by space. |
31 | | - -e <path>\t\t Path to exclude from analysis (ex, -e {dir} {file}) |
| 32 | + -e <path>\t\t Path to exclude from analysis (ex, -e [dir] [file]) |
32 | 33 | -o <output>\t\t Output directory or file |
33 | 34 | -c <number>\t\t Number of processes to analyze source |
34 | 35 | -r\t\t\t Keep raw data |
|
0 commit comments