From: Axel Wagner Date: Sat, 1 Jan 2011 21:11:44 +0000 (+0100) Subject: Add font-option to i3-input X-Git-Tag: tree-pr2~146 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3d274cf2f998d6366030ab07ec632a0b80d5c03d;p=i3%2Fi3 Add font-option to i3-input --- diff --git a/i3-input/main.c b/i3-input/main.c index f5229c08..1010e584 100644 --- a/i3-input/main.c +++ b/i3-input/main.c @@ -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 ] [-p ] [-l ] [-P ] [-v]\n"); + printf("i3-input [-s ] [-p ] [-l ] [-P ] [-f ] [-v]\n"); return 0; } } diff --git a/man/i3-input.man b/man/i3-input.man index 5b7ce6d9..fee4d92e 100644 --- a/man/i3-input.man +++ b/man/i3-input.man @@ -9,7 +9,7 @@ i3-input - interactively take a command for i3 window manager == SYNOPSIS -i3-input [-s ] [-p ] [-l ] [-P ] [-v] +i3-input [-s ] [-p ] [-l ] [-P ] [-f ] [-v] == DESCRIPTION