Skip to content

Commit

Permalink
Various debug
Browse files Browse the repository at this point in the history
  • Loading branch information
obeone committed May 6, 2024
1 parent c34f607 commit ffb1eac
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ def main():
parser.add_argument("--title", "-t", help="Final title of the markdown file. Defaults to the URL")
parser.add_argument("--exclude", "-e", action="append", help="Exclude URLs containing this string", default=[])

try:
import argcomplete
argcomplete.autocomplete(parser)
except ImportError:
pass

args = parser.parse_args()
logger.debug(f"Command line arguments parsed: {args}")

Expand Down Expand Up @@ -102,14 +108,8 @@ def main():
markdown_path = os.path.join(output, f"{output_name}.md")
json_path = os.path.join(output, f"{output_name}.json")
logger.info(f"Markdown file generated at: {markdown_path}")
logger.info(f"JSON file generated at: {json_path}"
logger.info(f"JSON file generated at: {json_path}")


if __name__ == "__main__":
try:
import argcomplete
argcomplete.autocomplete(parser)
except ImportError:
pass

main()

0 comments on commit ffb1eac

Please sign in to comment.