Skip to content

Commit 7333c97

Browse files
committed
[SP-2587] chore: update documentation
1 parent 44584b6 commit 7333c97

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

CLIENT_HELP.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,15 @@ The new `folder-scan` subcommand performs a comprehensive scan on an entire dire
485485
scanoss-py folder-scan /path/to/folder -o folder-scan-results.json
486486
```
487487

488+
**Options:**
489+
- `--rank-threshold`: Filter results to only show those with rank value at or below this threshold (e.g., `--rank-threshold 3` returns results with rank 1, 2, or 3). Lower rank values indicate higher quality matches.
490+
- `--format`: Result output format (json or cyclonedx, default: json)
491+
492+
**Example with rank threshold:**
493+
```shell
494+
scanoss-py folder-scan /path/to/folder --rank-threshold 3 -o folder-scan-results.json
495+
```
496+
488497
### Container-Scan a Docker Image
489498

490499
The `container-scan` subcommand allows you to scan Docker container images for dependencies. This command extracts and analyzes dependencies from container images, helping you identify open source components within containerized applications.

docs/source/index.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,11 @@ Performs a comprehensive scan of a directory using folder hashing to identify co
249249
* - --output <file name>, -o <file name>
250250
- Output result file name (optional - default STDOUT)
251251
* - --format <format>, -f <format>
252-
- Output format: {json} (optional - default json)
252+
- Output format: {json, cyclonedx} (optional - default json)
253253
* - --timeout <seconds>, -M <seconds>
254254
- Timeout in seconds for API communication (optional - default 600)
255+
* - --rank-threshold <number>
256+
- Filter results to only show those with rank value at or below this threshold (e.g., --rank-threshold 3 returns results with rank 1, 2, or 3). Lower rank values indicate higher quality matches.
255257
* - --settings <file>, -st <file>
256258
- Settings file to use for scanning (optional - default scanoss.json)
257259
* - --skip-settings-file, -stf

src/scanoss/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -632,8 +632,8 @@ def setup_args() -> None: # noqa: PLR0912, PLR0915
632632
'--rank-threshold',
633633
type=int,
634634
default=DEFAULT_HFH_RANK_THRESHOLD,
635-
help='Get results with rank below this threshold (e.g i only want to see results from rank 5 and below). '
636-
'Lower rank means better quality.',
635+
help='Filter results to only show those with rank value at or below this threshold (e.g., --rank-threshold 3 returns results with rank 1, 2, or 3). '
636+
'Lower rank values indicate higher quality matches.',
637637
)
638638
p_folder_scan.set_defaults(func=folder_hashing_scan)
639639

0 commit comments

Comments
 (0)