chiark
/
gitweb
/
~ian
/
innduct.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b21c067
)
Legal notice if no arguments supplied
author
Ian Jackson
<ian@liberator.relativity.greenend.org.uk>
Sat, 22 May 2010 23:53:21 +0000
(
00:53
+0100)
committer
Ian Jackson
<ian@liberator.relativity.greenend.org.uk>
Sat, 22 May 2010 23:53:21 +0000
(
00:53
+0100)
duct.c
patch
|
blob
|
history
diff --git
a/duct.c
b/duct.c
index f6f894353f1e383ecdf445ea2a2a7c94aaed9997..489fb92ee203c4c2fc740d83d7b52a1da50d4874 100644
(file)
--- a/
duct.c
+++ b/
duct.c
@@
-393,6
+393,14
@@
static void printusage(FILE *f) {
print_options(innduct_options, f);
}
+static void printcopyright(FILE *f) {
+ fputs(
+ "innduct is Copyright (C)2010 Ian Jackson.\n"
+ "It is free software, licenced under GPL version 3 or later.\n"
+ "It is provided WITHOUT ANY WARRANTY. See the file GPL-3 for details\n",
+ stderr);
+}
+
static void help(const Option *o, const char *val) {
printusage(stdout);
if (ferror(stdout) || fflush(stdout)) {
@@
-426,6
+434,7
@@
int main(int argc, char **argv) {
if (!argv[1]) {
printusage(stderr);
+ printcopyright(stderr);
exit(8);
}