Skip to content

Commit 24ce246

Browse files
committed
Add support for setting prompt defaults in hooks
1 parent 6f4f1ba commit 24ce246

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/interactive-command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export class InteractiveCommand extends Command {
143143

144144
const key = option.attributeName();
145145
const value = await option.readFunction(
146-
providedOptions[key],
146+
this.getOptionValue(key) ?? providedOptions[key],
147147
option,
148148
this,
149149
);

0 commit comments

Comments
 (0)