Skip to content

Commit

Permalink
Update cli.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaos599 authored Oct 30, 2024
1 parent a35d2a8 commit 981db9f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pdfly/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

import pdfly.cat
import pdfly.compress
import pdfly.uncompress
import pdfly.extract_images
import pdfly.metadata
import pdfly.pagemeta
Expand Down Expand Up @@ -227,7 +226,9 @@ def compress(
],
) -> None:
pdfly.compress.main(pdf, output)
@entry_point.command(name="uncompress", help="Uncompress a PDF.")


@entry_point.command(name="uncompress", help=pdfly.uncompress.__doc__) # type: ignore[misc]
def uncompress(
pdf: Annotated[
Path,
Expand All @@ -243,13 +244,14 @@ def uncompress(
output: Annotated[
Path,
typer.Argument(
file_okay=True,
exists=False,
writable=True,
),
],
) -> None:
pdfly.uncompress.main(pdf, output)


@entry_point.command(name="x2pdf", help=pdfly.x2pdf.__doc__) # type: ignore[misc]
def x2pdf(
x: List[Path],
Expand Down

0 comments on commit 981db9f

Please sign in to comment.