We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0023007 commit dfa0d20Copy full SHA for dfa0d20
consolekit/options.py
@@ -71,6 +71,12 @@
71
import consolekit.input
72
from consolekit._types import Callback, _ConvertibleType
73
74
+try:
75
+ # 3rd party
76
+ from click.core import UNSET # type: ignore[attr-defined]
77
+except ImportError:
78
+ UNSET = object()
79
+
80
__all__ = (
81
"verbose_option",
82
"version_option",
@@ -497,6 +503,7 @@ def prompt_for_value(self, ctx: click.Context): # noqa: MAN002
497
503
show_choices=self.show_choices,
498
504
confirmation_prompt=self.confirmation_prompt,
499
505
value_proc=lambda x: self.process_value(ctx, x),
506
+ show_default=default is not UNSET,
500
507
)
501
508
502
509
0 commit comments