Skip to content

Commit b4e3eb1

Browse files
committed
feat: improve cli descriptions
1 parent e909288 commit b4e3eb1

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,23 +42,25 @@ Commands:
4242
generate Generate an Opossum file from various other file formats.
4343
```
4444

45-
### `generate`
45+
### generate
4646

4747
```bash
48-
Usage: uv run opossum-file generate [OPTIONS]
48+
sage: opossum-file generate [OPTIONS]
4949

5050
Generate an Opossum file from various other file formats.
5151

5252
Currently supported input formats:
5353
- SPDX
5454

5555
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.
5760
-o, --outfile TEXT The file path to write the generated opossum document
5861
to. If appropriate, the extension ".opossum" will be
5962
appended. [default: output.opossum]
6063
--help Show this message and exit.
61-
6264
```
6365

6466
# Development

src/opossum_lib/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ def opossum_file() -> None:
2525
@opossum_file.command()
2626
@click.option(
2727
"--spdx",
28-
help="SPDX files used as input.",
28+
help="Specify a SPDX file that you would like to include in the final output.",
2929
multiple=True,
3030
type=click.Path(exists=True),
3131
)
3232
@click.option(
3333
"--opossum",
34-
help="opossum files used as input.",
34+
help="Specify a .opossum file that you would like to include in the final output.",
3535
multiple=True,
3636
type=click.Path(exists=True),
3737
)

src/opossum_lib/opossum/read_opossum_file.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ def read_opossum_file(filename: str) -> OpossumInformation:
2626
input_json = json.load(input_json_file)
2727
return TypeAdapter(OpossumInformation).validate_python(input_json)
2828
except Exception as e:
29-
# handle the exception
3029
print(f"Error reading file {filename}: {e}")
3130
sys.exit(1)
3231

0 commit comments

Comments
 (0)