vanyakosmos / argser

Arguments parsing without boilerplate.
https://argser.readthedocs.io/en/stable/
15 stars 0 forks source link

parse_func: read help text from annotation (similar to plac) or from docstring #23

Closed vanyakosmos closed 4 years ago

vanyakosmos commented 4 years ago

for functions:

def func(a: int, b):
    """
    Command docs

    :param a: attribute description
    :param b: other help message
    :type b: str
    """
call(func)

for classes:

class Args:
    """Command docs"""

    class Sub:
        """sub command doc"""
thautwarm commented 4 years ago

Any progress?

vanyakosmos commented 4 years ago

I was distracted by other projects and totally forgot about argser. Also I am surprised that someone (except for me) is using it :)

I will try to implement this feature soon.

thautwarm commented 4 years ago

That's okay.

Also I am surprised that someone (except for me) is using it :)

What the hell? Do you know you're making the BEST python argument parsing library so far? Although it'd be a little difficult to sell a package, but you should never judge yourself from unconcious people's ignorance.

thautwarm commented 4 years ago

If I can star more I want to give you 10k stars.