diff --git a/.all-contributorsrc b/.all-contributorsrc index 409e935..3171aab 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -102,6 +102,6 @@ } ], "contributorsPerLine": 5, - "skipCi": true, + "skipCi": false, "commitType": "docs" } diff --git a/README.md b/README.md index a409081..b71fe56 100644 --- a/README.md +++ b/README.md @@ -45,7 +45,7 @@ $ pdfly --help ╰─────────────────────────────────────────────────────────────────────────────╯ ``` -You can see the help of every subcommand by typing: +You can see the help of every subcommand by typing `--help`: ```console $ pdfly 2-up --help diff --git a/pdfly/cli.py b/pdfly/cli.py index 32dac25..afd543d 100644 --- a/pdfly/cli.py +++ b/pdfly/cli.py @@ -283,7 +283,7 @@ def update_offsets( resolve_path=True, ), ], - file_out: Path, + file_out: Path = typer.Option(None, "-o", "--output"), encoding: str = typer.Option( "ISO-8859-1", help="Encoding used to read and write the files, e.g. UTF-8.", diff --git a/pdfly/update_offsets.py b/pdfly/update_offsets.py index 92b7626..0d9c9a0 100644 --- a/pdfly/update_offsets.py +++ b/pdfly/update_offsets.py @@ -277,6 +277,8 @@ def read_binary_file(file_path: Path, encoding: str) -> List[str]: def main(file_in: Path, file_out: Path, encoding: str, verbose: bool) -> None: + if not file_out: + file_out = file_in console = Console() console.print(f"Read {file_in}")