Add font-option to i3-input

This commit is contained in:
Axel Wagner 2011-01-01 22:11:44 +01:00 committed by Michael Stapelberg
parent 2959dcb24c
commit 0609c1bf3e
2 changed files with 7 additions and 3 deletions

View File

@ -267,11 +267,12 @@ int main(int argc, char *argv[]) {
{"limit", required_argument, 0, 'l'},
{"prompt", required_argument, 0, 'P'},
{"prefix", required_argument, 0, 'p'},
{"font", required_argument, 0, 'f'},
{"help", no_argument, 0, 'h'},
{0, 0, 0, 0}
};
char *options_string = "s:p:P:l:vh";
char *options_string = "s:p:P:f:l:vh";
while ((o = getopt_long(argc, argv, options_string, long_options, &option_index)) != -1) {
switch (o) {
@ -290,9 +291,12 @@ int main(int argc, char *argv[]) {
case 'P':
prompt = strdup(optarg);
break;
case 'f':
pattern = strdup(optarg);
break;
case 'h':
printf("i3-input " I3_VERSION);
printf("i3-input [-s <socket>] [-p <prefix>] [-l <limit>] [-P <prompt>] [-v]\n");
printf("i3-input [-s <socket>] [-p <prefix>] [-l <limit>] [-P <prompt>] [-f <font>] [-v]\n");
return 0;
}
}

View File

@ -9,7 +9,7 @@ i3-input - interactively take a command for i3 window manager
== SYNOPSIS
i3-input [-s <socket>] [-p <prefix>] [-l <limit>] [-P <prompt>] [-v]
i3-input [-s <socket>] [-p <prefix>] [-l <limit>] [-P <prompt>] [-f <font>] [-v]
== DESCRIPTION