projects
/
platform
/
upstream
/
libsolv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a6ee805
)
add "-h" for help
author
Klaus Kaempf
<kkaempf@suse.de>
Wed, 13 Feb 2008 14:32:06 +0000
(14:32 +0000)
committer
Klaus Kaempf
<kkaempf@suse.de>
Wed, 13 Feb 2008 14:32:06 +0000
(14:32 +0000)
tools/susetags2solv.c
patch
|
blob
|
history
diff --git
a/tools/susetags2solv.c
b/tools/susetags2solv.c
index
3d1888f
..
f8b825e
100644
(file)
--- a/
tools/susetags2solv.c
+++ b/
tools/susetags2solv.c
@@
-18,6
+18,19
@@
#include "repo_content.h"
#include "common_write.h"
#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)
{
int
main(int argc, char **argv)
{
@@
-34,6
+47,7
@@
main(int argc, char **argv)
while (*s)
switch (*s++)
{
while (*s)
switch (*s++)
{
+ case 'h': usage(); exit(0);
case 'a': with_attr = 1; break;
case 's': test_separate = 1; break;
case 'c':
case 'a': with_attr = 1; break;
case 's': test_separate = 1; break;
case 'c':