Skip to content

Add --output-dir argument for custom JSON output path#303

Open
A-KumarSharma wants to merge 1 commit into
VectifyAI:mainfrom
A-KumarSharma:akshat
Open

Add --output-dir argument for custom JSON output path#303
A-KumarSharma wants to merge 1 commit into
VectifyAI:mainfrom
A-KumarSharma:akshat

Conversation

@A-KumarSharma
Copy link
Copy Markdown

Changes

  • Added new --output-dir CLI argument
  • Users can now customize where generated JSON files are saved
  • Replaced hardcoded ./results directory with configurable output path
  • Added automatic directory creation using os.makedirs(..., exist_ok=True)

Example

Before:
python main.py --pdf_path sample.pdf

Output:
./results/sample_structure.json

Now:
python main.py --pdf_path sample.pdf --output-dir ./my_output

Output:
./my_output/sample_structure.json

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