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
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.
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
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 beprompt_if_missing
or something like that.Originally posted by @Jaymon in #77 (comment)
The text was updated successfully, but these errors were encountered: