yoheinakajima / instagraph

Converts text input or URL into knowledge graph and displays
MIT License
3.27k stars 281 forks source link

Add command line arguments #65

Closed isamu closed 10 months ago

isamu commented 10 months ago

Add --debug, --port option.

Summary by CodeRabbit

coderabbitai[bot] commented 10 months ago

Walkthrough

The introduced changes enhance the application's flexibility by adding command-line argument parsing. This allows users to specify the debug mode and port number when running the application, thereby enabling different configurations directly from the command line.

Changes

File Summary
main.py Added command-line argument parsing using argparse. Introduced --debug and --port options to enable debug mode and specify port number respectively. Modified app.run() to use parsed arguments.

🎉🐇

With a hop and a skip, the code takes a dip,

Into the world of args, where options flip.

Debug or not, choose your port slot,

Run the app, hot on the spot! 🚀


Tips ### Chat with CodeRabbit Bot (`@coderabbitai`) - Mention `@coderabbitai` in any *review comment* for bot assistance. - Note: Review comments are made on code diffs or files, not on the PR overview. ### Pause Incremental Reviews - Insert `@coderabbitai: ignore` in the PR description to halt the bot's ongoing reviews. Remove the line to resume. - Additionally, enter `@coderabbitai pause` to halt the bot's ongoing reviews as any issue or review comment. To resume reviews, enter `@coderabbitai resume` as any issue or review comment.