Skip to content

Add --file option for single file processing#1

Open
uwe-schwarz wants to merge 1 commit intomaurycy:mainfrom
uwe-schwarz:feature/add-file-option
Open

Add --file option for single file processing#1
uwe-schwarz wants to merge 1 commit intomaurycy:mainfrom
uwe-schwarz:feature/add-file-option

Conversation

@uwe-schwarz
Copy link
Copy Markdown

Add --file option for single file processing

This PR adds a new command-line option --file that allows processing a single PDF file instead of scanning an entire directory.

Changes:

  • Added a new --file option to the argument parser
  • Made directory and file options mutually exclusive
  • Added logic to process a single file when the --file option is specified
  • Preserved all existing functionality for directory processing

Usage:

To process a single file:
uv run scan.py --file "/path/to/file.pdf"

To process a directory (unchanged):
uv run scan.py "/path/to/directory"
or
uv run scan.py --directory "/path/to/directory"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant