Skip to content

Commit 629a9ce

Browse files
committed
Add same shortcut on submenu
1 parent ab8e333 commit 629a9ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/shortcuts.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
->addItem('Third [I]tem', $itemCallable)
1818
->addSubMenu('[O]ptions', function (CliMenuBuilder $b) {
1919
$b->setTitle('CLI Menu > Options')
20-
->addItem('First option', function (CliMenu $menu) {
20+
->addItem('[F]irst option', function (CliMenu $menu) {
2121
echo sprintf('Executing option: %s', $menu->getSelectedItem()->getText());
2222
})
2323
->addLineBreak('-');

0 commit comments

Comments
 (0)