mirror of
https://codeberg.org/adnano/wmenu.git
synced 2025-10-29 05:40:20 -04:00
parent
963a677631
commit
15d7c7bcc2
5 changed files with 30 additions and 5 deletions
5
menu.c
5
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue