[hackers] [quark] Add arg-parser and move copyright-info to LICENSE || FRIGN

From: <git_AT_suckless.org>
Date: Mon, 28 Jul 2014 13:42:09 +0200

commit c3d007756edeb8d1b5554a959785e49470432909
Author: FRIGN <dev_AT_frign.de>
Date: Mon Jul 28 13:42:26 2014 +0200

    Add arg-parser and move copyright-info to LICENSE

diff --git a/LICENSE b/LICENSE
index 7b0e268..7cd929a 100644
--- a/LICENSE
+++ b/LICENSE
_AT_@ -2,6 +2,8 @@ MIT/X Consortium License
 
 © 2009-2011 Anselm R Garbe <anselm_AT_garbe.us>
 © 2011 Szabolcs Nagy <nszabolcs_AT_gmail.com>
+© 2014 Hiltjo Posthuma <hiltjo_AT_codemadness.org>
+© 2014 Laslo Hunhold <dev_AT_frign.de>
 
 Permission is hereby granted, free of charge, to any person obtaining a
 copy of this software and associated documentation files (the "Software"),
diff --git a/quark.c b/quark.c
index b1aacb3..5e8e43e 100644
--- a/quark.c
+++ b/quark.c
_AT_@ -541,12 +541,12 @@ main(int argc, char *argv[]) {
         struct group *gpwd;
         int i;
 
- /* arguments */
- for(i = 1; i < argc; i++)
- if(!strcmp(argv[i], "-v"))
- die("quark-"VERSION", © 2009-2011 Anselm R Garbe
");
- else
- die("usage: quark [-v]
");
+ ARGBEGIN {
+ case 'v':
+ die("quark-"VERSION"
");
+ default:
+ die("usage: %s [-v]
", argv0);
+ } ARGEND;
 
         /* sanity checks */
         if(user)
Received on Mon Jul 28 2014 - 13:42:09 CEST

This archive was generated by hypermail 2.3.0 : Mon Jul 28 2014 - 13:48:08 CEST