]> 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:24:27 +0000 (12:24 +0100)
i3-input/main.c
man/i3-input.man

index 2a3f02fdd6ac902eff4fc3ee594a9e1c1052e679..581386d208dd0c9c8f90ec4be5d3a6a6a91beac4 100644 (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;
                 }
         }
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