aboutsummaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authoradnano <me@adnano.co>2024-05-04 21:44:59 -0400
committeradnano <me@adnano.co>2024-05-04 21:44:59 -0400
commit15d7c7bcc29e66f174c4de2420d371a9737ac6e4 (patch)
tree3be3d17ffb062e95f92d90dbdd7fb74fa6e4f538 /menu.c
parent963a677631f00b9b259e101a5e3dad85da6ccbf2 (diff)
downloadwmenu-15d7c7bcc29e66f174c4de2420d371a9737ac6e4.tar.gz
Revert "Remove wmenu -P flag"
This reverts commit c05ab7520b452ee3b8bd974a18511dc370cbeabe.
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/menu.c b/menu.c
index 3e8f9be..baa3061 100644
--- a/menu.c
+++ b/menu.c
@@ -89,7 +89,7 @@ void menu_getopts(struct menu *menu, int argc, char *argv[]) {
"\t[-N color] [-n color] [-M color] [-m color] [-S color] [-s color]\n";
int opt;
- while ((opt = getopt(argc, argv, "bhivf:l:o:p:N:n:M:m:S:s:")) != -1) {
+ while ((opt = getopt(argc, argv, "bhiPvf:l:o:p:N:n:M:m:S:s:")) != -1) {
switch (opt) {
case 'b':
menu->bottom = true;
@@ -97,6 +97,9 @@ void menu_getopts(struct menu *menu, int argc, char *argv[]) {
case 'i':
menu->strncmp = strncasecmp;
break;
+ case 'P':
+ menu->passwd = true;
+ break;
case 'v':
puts("wmenu " VERSION);
exit(EXIT_SUCCESS);