Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…5064) In the `InteractiveOption` providing a normal callback is wrapped in the method `after_callback` while the actual callback is replaced by `prompt_callback`. Now the following situation occurs when the parameter should be prompted for: 1. `prompt_loop` is entered via `prompt_callback` and the value is converted in `safely_convert` 2. `safely_convert` also includes a call to `prompt_callback`, where a call to `after_callback` is performed 3. After a value succeeds the code goes back into the place, where the `prompt_loop` was entered in `prompt_callback` and continues with an additional call to `after_callback` which already executed before The fix here is to directly return after the `prompt_loop` finishes and handle the case, where the value should not be prompted separately
- Loading branch information
1 parent
bf80fde
commit 6f93253
Showing
2 changed files
with
43 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters