It would be nice to be able to prompt for a missing value, I think this would be easiest using an action. I would need to register the action in the initialize method:
self.register('action', 'prompt', PromptAction)
And then I can use it:
@arg("--foo", action="prompt")
Where the missing argument can take a callback or something. Likewise, maybe:
@arg("--foo", missing=prompt)
Would say that the foo value should prompt for a value? Or maybe the action should be prompt_if_missing or something like that.
Originally posted by @Jaymon in #77 (comment)
It would be nice to be able to prompt for a missing value, I think this would be easiest using an action. I would need to register the action in the initialize method:
And then I can use it:
@arg("--foo", action="prompt")Where the
missingargument can take a callback or something. Likewise, maybe:@arg("--foo", missing=prompt)Would say that the
foovalue should prompt for a value? Or maybe the action should beprompt_if_missingor something like that.Originally posted by @Jaymon in #77 (comment)