chiark / gitweb /
Legal notice if no arguments supplied
[innduct.git] / duct.c
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);
   }