[suggestion] tapify(...)
should support classes/objects by producing subargument parsers
#101
Labels
enhancement
New feature or request
With #96,
tapify()
was introduced, which automagically produces and executes the appropriateargparse
code based on the type annotations of the passed function:similar to python-fire, tapify should support objects and/or classes, such that subparsers are created for each method. e.g.:
Should produce a main parser with one optional
--offset
argument and two subparsers (add
andmultiply
) with the appropriate options.The text was updated successfully, but these errors were encountered: