Hello

I created a Slackware SBo package for wmname and just added -h option for
help. Although it's probably not worth the effort, but anyway, helpful to
have.

Arvydas Sidorenko
--- wmname_org.c	2011-08-24 21:58:34.615757525 +0200
+++ wmname.c	2011-08-24 22:42:14.915506861 +0200
@@ -26,8 +26,8 @@
 	Window root;
 	Atom netwmcheck, netwmname, utf8_string, real;
 
-	if(argc > 2)
-		eprint("usage: wmname [name] [-v]\n");
+	if(argc > 2 || (argc == 2 && !strncmp(argv[1], "-h", 3)))
+		eprint("usage: wmname [name] [OPTION]\n\t-v\t: print version\n\t-h\t: print help\n");
 	else if(argc == 2 && !strncmp(argv[1], "-v", 3))
 		eprint("wmname-"VERSION", © 2008 Anselm R Garbe\n", stdout);
 

Reply via email to