You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-c --count=<int> Option for a count of some kind [default: 42]
Is there a way to retrieve the default value ( 42) and the value of the value designation (<int>) programatically? I.e. is the a way to get from the resulting args after docopt-ng is done parsing? I have an oustanding PR in original docopt for that sort of change but, as well all know, that's not going to be merged.
The text was updated successfully, but these errors were encountered:
To answer my own question: The PR I just made will take care of the <int> thing, while the 42 thing (and, once the PR is merged, the argument type, i.e. <int>) can be accessed via the parse_defaults function:
For the following option definition
Is there a way to retrieve the default value (
42
) and the value of the value designation (<int>
) programatically? I.e. is the a way to get from the resultingargs
after docopt-ng is done parsing? I have an oustanding PR in original docopt for that sort of change but, as well all know, that's not going to be merged.The text was updated successfully, but these errors were encountered: