Add arg-parser and move copyright-info to LICENSE
This commit is contained in:
parent
dfd68c48be
commit
c3d007756e
2 changed files with 8 additions and 6 deletions
2
LICENSE
2
LICENSE
|
@ -2,6 +2,8 @@ MIT/X Consortium License
|
||||||
|
|
||||||
© 2009-2011 Anselm R Garbe <anselm@garbe.us>
|
© 2009-2011 Anselm R Garbe <anselm@garbe.us>
|
||||||
© 2011 Szabolcs Nagy <nszabolcs@gmail.com>
|
© 2011 Szabolcs Nagy <nszabolcs@gmail.com>
|
||||||
|
© 2014 Hiltjo Posthuma <hiltjo@codemadness.org>
|
||||||
|
© 2014 Laslo Hunhold <dev@frign.de>
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a
|
Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
copy of this software and associated documentation files (the "Software"),
|
copy of this software and associated documentation files (the "Software"),
|
||||||
|
|
12
quark.c
12
quark.c
|
@ -541,12 +541,12 @@ main(int argc, char *argv[]) {
|
||||||
struct group *gpwd;
|
struct group *gpwd;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
/* arguments */
|
ARGBEGIN {
|
||||||
for(i = 1; i < argc; i++)
|
case 'v':
|
||||||
if(!strcmp(argv[i], "-v"))
|
die("quark-"VERSION"\n");
|
||||||
die("quark-"VERSION", © 2009-2011 Anselm R Garbe\n");
|
default:
|
||||||
else
|
die("usage: %s [-v]\n", argv0);
|
||||||
die("usage: quark [-v]\n");
|
} ARGEND;
|
||||||
|
|
||||||
/* sanity checks */
|
/* sanity checks */
|
||||||
if(user)
|
if(user)
|
||||||
|
|
Loading…
Reference in a new issue