Skip to content

feat: add --output-dir and --output-file CLI options#290

Open
okwn wants to merge 1 commit into
VectifyAI:mainfrom
okwn:feat/cli-output-option
Open

feat: add --output-dir and --output-file CLI options#290
okwn wants to merge 1 commit into
VectifyAI:mainfrom
okwn:feat/cli-output-option

Conversation

@okwn
Copy link
Copy Markdown

@okwn okwn commented May 22, 2026

Summary

Adds --output-dir and --output-file CLI options to run_pageindex.py, allowing users to specify custom output paths for scripted/automated usage.

Fixes issue #268.

Changes

  • Added --output-dir argument (default: ./results) to specify output directory
  • Added --output-file argument to specify exact output file path (overrides default naming)
  • Both options work for PDF and markdown processing

Testing

  • Verified --help shows new options
  • Tested with sample markdown file using custom output path

Example Usage

# Custom output directory
python run_pageindex.py --pdf_path doc.pdf --output-dir /tmp/pi_out

# Custom output file
python run_pageindex.py --md_path doc.md --output-file /tmp/my_result.json

Allows users to specify custom output directory and file path for
scripted/automated usage. Fixes issue VectifyAI#268.
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