diff options
author | adnano <me@adnano.co> | 2024-05-04 21:44:59 -0400 |
---|---|---|
committer | adnano <me@adnano.co> | 2024-05-04 21:44:59 -0400 |
commit | 15d7c7bcc29e66f174c4de2420d371a9737ac6e4 (patch) | |
tree | 3be3d17ffb062e95f92d90dbdd7fb74fa6e4f538 /menu.c | |
parent | 963a677631f00b9b259e101a5e3dad85da6ccbf2 (diff) | |
download | wmenu-15d7c7bcc29e66f174c4de2420d371a9737ac6e4.tar.gz |
Revert "Remove wmenu -P flag"
This reverts commit c05ab7520b452ee3b8bd974a18511dc370cbeabe.
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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); |