AThePeanut4 / docify

A script to add docstrings to Python type stubs using reflection
MIT License
5 stars 2 forks source link

support running programmatically & fix `--output` argument #2

Closed DetachHead closed 1 week ago

DetachHead commented 2 weeks ago

this allows you to run docify programmatically from python:

from docify import main

main('./foo', 'verbose')

also the --output arg was crashing with this error, so i fixed that too:

AttributeError: 'Namespace' object has no attribute 'output_dir'. Did you mean: 'input_dir'?
AThePeanut4 commented 1 week ago

Thanks!