I am not sure if you really know the answer.
snippsat
All is explained here Callbacks and Eager Options
You can test yourself with print() as many forget.
snippsat
Quote:Actually, I did't ask what would be the output of the code. I asked what will be passed to param and value of callback function print_version.
All is explained here Callbacks and Eager Options
You can test yourself with print() as many forget.
def print_version(ctx, param, value): print(value, ctx.resilient_parsing)Use should see the boolan values True,False as it passed to function.