79719116

Date: 2025-07-29 19:11:28
Score: 0.5
Natty:
Report link

I found that parameters can be accessed through the ctx parameter. You'll need to access the parent context to do so:

def _shell_complete(ctx, args, incomplete):
    global_opt = ctx.parent.params["global_opt"]
    # ... process options based on param value
    return options
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Aesonus