]> git.sur5r.net Git - i3/i3/commitdiff
Add font-option to i3-input
authorAxel Wagner <mail@merovius.de>
Sat, 1 Jan 2011 21:11:44 +0000 (22:11 +0100)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 2 Jan 2011 11:22:39 +0000 (12:22 +0100)
i3-input/main.c
man/i3-input.man

index f5229c08a3c1c2371b55e8ae896a69ad6edf2b83..1010e584c15b924c13a2873ddedd3924b13726d1 100644 (file)
@@ -251,11 +251,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) {
@@ -274,9 +275,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;
                 }
         }
index 5b7ce6d96d9bfecd102522123f490b2c7a690920..fee4d92e939f1955b19a5bc579d787ce4d91674a 100644 (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