File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -42,23 +42,25 @@ Commands:
42
42
generate Generate an Opossum file from various other file formats.
43
43
```
44
44
45
- ### ` generate `
45
+ ### generate
46
46
47
47
``` bash
48
- Usage: uv run opossum-file generate [OPTIONS]
48
+ sage: opossum-file generate [OPTIONS]
49
49
50
50
Generate an Opossum file from various other file formats.
51
51
52
52
Currently supported input formats:
53
53
- SPDX
54
54
55
55
Options:
56
- --spdx PATH SPDX files used as input.
56
+ --spdx PATH Specify a SPDX file that you would like to include in
57
+ the final output.
58
+ --opossum PATH Specify a .opossum file that you would like to include
59
+ in the final output.
57
60
-o, --outfile TEXT The file path to write the generated opossum document
58
61
to. If appropriate, the extension " .opossum" will be
59
62
appended. [default: output.opossum]
60
63
--help Show this message and exit.
61
-
62
64
```
63
65
64
66
# Development
Original file line number Diff line number Diff line change @@ -25,13 +25,13 @@ def opossum_file() -> None:
25
25
@opossum_file .command ()
26
26
@click .option (
27
27
"--spdx" ,
28
- help = "SPDX files used as input ." ,
28
+ help = "Specify a SPDX file that you would like to include in the final output ." ,
29
29
multiple = True ,
30
30
type = click .Path (exists = True ),
31
31
)
32
32
@click .option (
33
33
"--opossum" ,
34
- help = "opossum files used as input ." ,
34
+ help = "Specify a . opossum file that you would like to include in the final output ." ,
35
35
multiple = True ,
36
36
type = click .Path (exists = True ),
37
37
)
Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ def read_opossum_file(filename: str) -> OpossumInformation:
26
26
input_json = json .load (input_json_file )
27
27
return TypeAdapter (OpossumInformation ).validate_python (input_json )
28
28
except Exception as e :
29
- # handle the exception
30
29
print (f"Error reading file { filename } : { e } " )
31
30
sys .exit (1 )
32
31
You can’t perform that action at this time.
0 commit comments