@@ -24,7 +24,9 @@ To see the help text from the Terminal, execute the following command::
24
24
25
25
$ scancode --help
26
26
27
- The Following Help Text is displayed, i.e. This is the help text for Scancode Version 32.0.0::
27
+ The Following Help Text is displayed, i.e. This is the help text for Scancode Version 32.0.0:
28
+
29
+ .. code-block :: none
28
30
29
31
Usage: scancode [OPTIONS] <OUTPUT FORMAT OPTION(s)> <input>...
30
32
@@ -49,25 +51,25 @@ The Following Help Text is displayed, i.e. This is the help text for Scancode Ve
49
51
-u, --url Scan <input> for urls.
50
52
51
53
scan options:
52
- --license-diagnostics In license detections, include diagnostic details
54
+ --license-diagnostics In license detections, include diagnostic details
53
55
to figure out the license detection post
54
56
processing steps applied.
55
- --license-score INTEGER Do not return license matches with a score lower
57
+ --license-score INTEGER Do not return license matches with a score lower
56
58
than this score. A number between 0 and 100.
57
59
[default: 0]
58
- --license-text Include the detected licenses matched text.
59
- --license-text-diagnostics In the matched license text, include diagnostic
60
+ --license-text Include the detected licenses matched text.
61
+ --license-text-diagnostics In the matched license text, include diagnostic
60
62
highlights surrounding with square brackets []
61
63
words that are not matched.
62
- --license-url-template TEXT Set the template URL used for the license
64
+ --license-url-template TEXT Set the template URL used for the license
63
65
reference URLs. Curly braces ({}) are replaced by
64
66
the license key. [default: https://scancode-
65
67
licensedb.aboutcode.org/{}]
66
- --max-email INT Report only up to INT emails found in a file. Use
68
+ --max-email INT Report only up to INT emails found in a file. Use
67
69
0 for no limit. [default: 50]
68
- --max-url INT Report only up to INT urls found in a file. Use 0
70
+ --max-url INT Report only up to INT urls found in a file. Use 0
69
71
for no limit. [default: 50]
70
- --unknown-licenses [EXPERIMENTAL] Detect unknown licenses.
72
+ --unknown-licenses [EXPERIMENTAL] Detect unknown licenses.
71
73
72
74
output formats:
73
75
--json FILE Write scan output as compact JSON to FILE.
@@ -89,25 +91,24 @@ The Following Help Text is displayed, i.e. This is the help text for Scancode Ve
89
91
--cyclonedx-xml FILE Write scan output in CycloneDX XML format to FILE.
90
92
--spdx-rdf FILE Write scan output as SPDX RDF to FILE.
91
93
--spdx-tv FILE Write scan output as SPDX Tag/Value to FILE.
92
- --html-app FILE (DEPRECATED: use the ScanCode Workbench app instead )
94
+ --html-app FILE (DEPRECATED: use the ScanCode Workbench app instead)
93
95
Write scan output as a mini HTML application to FILE.
94
96
95
97
output filters:
96
- --ignore-author <pattern> Ignore a file (and all its findings) if an
97
- author contains a match to the <pattern>
98
- regular expression. Note that this will ignore
99
- a file even if it has other findings such as a
100
- license or errors.
101
- --ignore-copyright-holder <pattern>
102
- Ignore a file (and all its findings) if a
103
- copyright holder contains a match to the
104
- <pattern> regular expression. Note that this
105
- will ignore a file even if it has other
106
- scanned data such as a license or errors.
107
- --only-findings Only return files or directories with findings
108
- for the requested scans. Files and directories
109
- without findings are omitted (file information
110
- is not treated as findings).
98
+ --ignore-author <pattern> Ignore a file (and all its findings) if an
99
+ author contains a match to the <pattern>
100
+ regular expression. Note that this will ignore
101
+ a file even if it has other findings such as a
102
+ license or errors.
103
+ --ignore-copyright-holder <pattern> Ignore a file (and all its findings) if a
104
+ copyright holder contains a match to the
105
+ <pattern> regular expression. Note that this
106
+ will ignore a file even if it has other
107
+ scanned data such as a license or errors.
108
+ --only-findings Only return files or directories with findings
109
+ for the requested scans. Files and directories
110
+ without findings are omitted (file information
111
+ is not treated as findings).
111
112
112
113
output control:
113
114
--full-root Report full, absolute paths.
@@ -118,65 +119,65 @@ The Following Help Text is displayed, i.e. This is the help text for Scancode Ve
118
119
pre-scan:
119
120
--ignore <pattern> Ignore files matching <pattern>.
120
121
--include <pattern> Include files matching <pattern>.
121
- --classify Classify files with flags telling if the file is a
122
- legal, or readme or test file, etc .
122
+ --classify Classify files with flags indicating whether the file is a
123
+ legal, readme, test or similar file.
123
124
--facet <facet>=<pattern> Add the <facet> to files with a path matching
124
- <pattern>.
125
+ <pattern>.
125
126
126
127
post-scan:
127
128
--consolidate Group resources by Packages or license and copyright
128
- holder and return those groupings as a list of
129
- consolidated packages and a list of consolidated
130
- components. This requires the scan to have/be run
131
- with the copyright, license, and package options
132
- active
129
+ holder and return those groupings as a list of
130
+ consolidated packages and a list of consolidated
131
+ components. This requires the scan to have/be run
132
+ with the copyright, license, and package options
133
+ active
133
134
--filter-clues Filter redundant duplicated clues already contained
134
- in detected license and copyright texts and notices.
135
+ in detected license and copyright texts and notices.
135
136
--license-clarity-score Compute a summary license clarity score at the
136
- codebase level.
137
+ codebase level.
137
138
--license-policy FILE Load a License Policy file and apply it to the scan
138
- at the Resource level.
139
+ at the Resource level.
139
140
--license-references Return reference data for all licenses and license
140
- rulespresent in detections.
141
+ rules present in detections.
141
142
--mark-source Set the "is_source" to true for directories that
142
- contain over 90% of source files as children and
143
- descendants. Count the number of source files in a
144
- directory as a new source_file_counts attribute
143
+ contain over 90% of source files as children and
144
+ descendants. Count the number of source files in a
145
+ directory as a new source_file_counts attribute
145
146
--summary Summarize scans by providing declared origin
146
- information and other detected origin info at the
147
- codebase attribute level.
147
+ information and other detected origin info at the
148
+ codebase attribute level.
148
149
--tallies Compute tallies for license, copyright and other
149
- scans at the codebase level.
150
+ scans at the codebase level.
150
151
--tallies-by-facet Compute tallies for license, copyright and other
151
- scans and group the results by facet.
152
+ scans and group the results by facet.
152
153
--tallies-key-files Compute tallies for license, copyright and other
153
- scans for key, top-level files. Key files are top-
154
- level codebase files such as COPYING, README and
155
- package manifests as reported by the --classify
156
- option "is_legal", "is_readme", "is_manifest" and
157
- "is_top_level" flags.
154
+ scans for key, top-level files. Key files are top-
155
+ level codebase files such as COPYING, README and
156
+ package manifests as reported by the --classify
157
+ option "is_legal", "is_readme", "is_manifest" and
158
+ "is_top_level" flags.
158
159
--tallies-with-details Compute tallies of license, copyright and other scans
159
- at the codebase level, keeping intermediate details
160
- at the file and directory level.
160
+ at the codebase level, keeping intermediate details
161
+ at the file and directory level.
161
162
162
163
core:
163
- --timeout <seconds> Stop an unfinished file scan after a timeout in
164
+ --timeout <seconds> Stop an unfinished file scan after a timeout in
164
165
seconds. [default: 120 seconds]
165
- -n, --processes INT Set the number of parallel processes to use. Disable
166
+ -n, --processes INT Set the number of parallel processes to use. Disable
166
167
parallel processing if 0. Also disable threading if
167
168
-1. [default: 1]
168
- -q, --quiet Do not print summary or progress.
169
- -v, --verbose Print progress as file-by-file path instead of a
169
+ -q, --quiet Do not print summary or progress.
170
+ -v, --verbose Print progress as file-by-file path instead of a
170
171
progress bar. Print verbose scan counters.
171
- --from-json Load codebase from one or more <input> JSON scan
172
+ --from-json Load codebase from one or more <input> JSON scan
172
173
file(s).
173
- --max-in-memory INTEGER Maximum number of files and directories scan details
174
+ --max-in-memory INTEGER Maximum number of files and directories scan details
174
175
kept in memory during a scan. Additional files and
175
176
directories scan details above this number are cached
176
177
on-disk rather than in memory. Use 0 to use unlimited
177
178
memory and disable on-disk caching. Use -1 to use
178
179
only on-disk caching. [default: 10000]
179
- --max-depth INTEGER Maximum nesting depth of subdirectories to scan.
180
+ --max-depth INTEGER Maximum nesting depth of subdirectories to scan.
180
181
Descend at most INTEGER levels of directories below
181
182
and including the starting directory. Use 0 for no
182
183
scan depth limit.
@@ -203,7 +204,7 @@ The Following Help Text is displayed, i.e. This is the help text for Scancode Ve
203
204
204
205
scancode --json-pp - --license --package samples
205
206
206
- Note: when you run scancode , a progress bar is displayed with a counter of the
207
+ Note: when you run ScanCode , a progress bar is displayed with a counter of the
207
208
number of files processed. Use --verbose to display file-by-file progress.
208
209
209
210
.. _cli_examples_text :
@@ -383,7 +384,8 @@ The Following Text is displayed, i.e. This is the available plugins for Scancode
383
384
required_plugins:
384
385
options:
385
386
help_group: output formats, name: html_app: --html-app
386
- help: (DEPRECATED: use the ScanCode Workbench app instead ) Write scan output as a mini HTML application to FILE.
387
+ help: (DEPRECATED: use the ScanCode Workbench app instead)
388
+ Write scan output as a mini HTML application to FILE.
387
389
doc:
388
390
Write scan output as a mini HTML application.
389
391
0 commit comments