From bd52671fe8ab7e1fcef0e82a91d6bf4d5d6130eb Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sun, 23 May 2010 00:53:21 +0100 Subject: [PATCH] Legal notice if no arguments supplied --- duct.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/duct.c b/duct.c index f6f8943..489fb92 100644 --- 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); } -- 2.30.2