Author: kkaempf Date: Wed Feb 13 15:32:06 2008 New Revision: 8660 URL: http://svn.opensuse.org/viewcvs/zypp?rev=8660&view=rev Log: add "-h" for help Modified: trunk/sat-solver/tools/susetags2solv.c Modified: trunk/sat-solver/tools/susetags2solv.c URL: http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/tools/susetags2solv.c?... ============================================================================== --- trunk/sat-solver/tools/susetags2solv.c (original) +++ trunk/sat-solver/tools/susetags2solv.c Wed Feb 13 15:32:06 2008 @@ -18,6 +18,19 @@ #include "repo_content.h" #include "common_write.h" +static void +usage(void) +{ + fprintf(stderr, "Usage:\n" + "susetags2solv [-a][-s][-c <content>][-h]\n" + " reads a 'susetags' repository from <stdin> and writes a .solv file to <stdout>\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 @@ while (*s) switch (*s++) { + case 'h': usage(); exit(0); case 'a': with_attr = 1; break; case 's': test_separate = 1; break; case 'c': -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org