Apply suggestions from code review

Co-authored-by: kvid <kvid@users.noreply.github.com>
This commit is contained in:
Daniel Rojas 2025-03-01 17:32:48 +01:00
parent 9d1700c4a0
commit 0fed30aa05
4 changed files with 8 additions and 4 deletions

View File

@ -137,7 +137,7 @@ mywire.tsv BOM (bill of materials) as tab-separated text file
mywire.html HTML page with wiring diagram and BOM embedded
```
Wildcars in the file path are also supported to process multiple files at once, e.g.:
Wildcards in the file path are also supported to process multiple files at once, e.g.:
```
$ wireviz ~/path/to/files/*.yml
```

View File

@ -31,7 +31,11 @@ epilog = (
)
@click.command(epilog=epilog, no_args_is_help=True)
@click.command(
epilog=epilog,
no_args_is_help=True,
context_settings=dict(help_option_names=["-h", "--help"]),
)
@click.argument("file", nargs=-1)
@click.option(
"-f",

View File

@ -22,8 +22,8 @@ from wireviz.wv_colors import (
)
from wireviz.wv_utils import (
NumberAndUnit,
awg_equiv,
aspect_ratio,
awg_equiv,
mm2_equiv,
parse_number_and_unit,
remove_links,