Message385675
On 1/25/2021 12:43 PM, Tadek Kijkowski wrote:
> Tadek Kijkowski <tkijkowski@gmail.com> added the comment:
>
> I added tests and docs to the PR. How does it look now?
Could you send me the docs privately?
I'm trying to understand what you are suggesting, without reading the code.
I realize that you are trying to apply different values of optional
parameters to positional parameters... how are you saving that context?
Is it up to the special handler of the positional parameter to read and
save the values of the optional parameters specified so far? What about
the ones unspecified so far? Can one even read and save the default value?
And where does it get stored? Is the value of the positional parameter
turned into a dict or class containing its own value + the saved
optional parameters?
I do agree that the even though the parse_intermixed_args was sufficient
for the use case I had at the time, and has been sufficient for me so
far, that it not fully flexible, and I think I have seen Unix command
line programs that had rich semantics similar to what you are proposing,
where the sequence of repeated optional args could affect handling of
later positionals but not earlier ones.
So I applaud your efforts here, but simply reading the issue, and having
forgotten most of the internal workings of argument parser since getting
the compromise going, I think reading your docs would help clarify it
for me. |
|
Date |
User |
Action |
Args |
2021-01-25 22:30:37 | v+python | set | recipients:
+ v+python, r.david.murray, paul.j3, monkeyman79 |
2021-01-25 22:30:37 | v+python | link | issue42973 messages |
2021-01-25 22:30:37 | v+python | create | |
|