[hackers] [st] add -v stuff

From: Anselm R. Garbe <arg_AT_suckless.org>
Date: Fri Mar 02 15:57:19 2007

changeset: 54:ecbf9d3b38b9
user: Anselm R. Garbe <arg_AT_suckless.org>
date: Fri Mar 02 15:53:26 2007 +0100
summary: add -v stuff

diff -r 9dfcbdf43eff -r ecbf9d3b38b9 main.c
--- a/main.c Fri Mar 02 15:51:38 2007 +0100
+++ b/main.c Fri Mar 02 15:53:26 2007 +0100
@@ -170,6 +170,8 @@ main(int argc, char **argv) {
 main(int argc, char **argv) {
         unsigned char c;
 
+ if(argc == 2 && !strncmp("-v", argv[1], 3))
+ eprint("st-"VERSION", (C)opyright MMVI-MMVII Anselm R. Garbe\n");
         setlocale(LC_CTYPE, "");
         if(!(dpy = XOpenDisplay(0)))
                 eprint("cannot open display\n");
Received on Fri Mar 02 2007 - 15:57:19 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:56:04 UTC