From: Klaus Kaempf Date: Wed, 13 Feb 2008 14:32:06 +0000 (+0000) Subject: add "-h" for help X-Git-Tag: BASE-SuSE-Code-12_1-Branch~308^2~625 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbc3df9f1a79599c4f8cd6aecf6ddd0a68fdfc00;p=thirdparty%2Flibsolv.git add "-h" for help --- diff --git a/tools/susetags2solv.c b/tools/susetags2solv.c index 3d1888f2..f8b825e2 100644 --- a/tools/susetags2solv.c +++ b/tools/susetags2solv.c @@ -18,6 +18,19 @@ #include "repo_content.h" #include "common_write.h" +static void +usage(void) +{ + fprintf(stderr, "Usage:\n" + "susetags2solv [-a][-s][-c ][-h]\n" + " reads a 'susetags' repository from and writes a .solv file to \n" + " -a : with attributes\n" + " -c : parse given contentfile (for product information)\n" + " -h : print help & exit\n" + " -s : test separate\n" + ); +} + int main(int argc, char **argv) { @@ -34,6 +47,7 @@ main(int argc, char **argv) while (*s) switch (*s++) { + case 'h': usage(); exit(0); case 'a': with_attr = 1; break; case 's': test_separate = 1; break; case 'c':