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:
072758c
)
add "-h" for help
author
Klaus Kaempf
<kkaempf@suse.de>
Thu, 14 Feb 2008 12:26:29 +0000
(12:26 +0000)
committer
Klaus Kaempf
<kkaempf@suse.de>
Thu, 14 Feb 2008 12:26:29 +0000
(12:26 +0000)
tools/mergesolv.c
patch
|
blob
|
history
diff --git
a/tools/mergesolv.c
b/tools/mergesolv.c
index
14a466a
..
f770fbd
100644
(file)
--- a/
tools/mergesolv.c
+++ b/
tools/mergesolv.c
@@
-22,6
+22,17
@@
#include "repo_solv.h"
#include "common_write.h"
+static void
+usage()
+{
+ fprintf(stderr, "\nUsage:\n"
+ "mergesolv [file] [file] [...]\n"
+ " merges multiple solv files into one and writes it to stdout\n"
+ );
+ exit(0);
+}
+
+
int
main(int argc, char **argv)
{
@@
-33,6
+44,8
@@
main(int argc, char **argv)
{
FILE *fp;
argv++;
+ if (!strcmp(*argv,"-h"))
+ usage();
if ((fp = fopen(*argv, "r")) == NULL)
{
perror(argv[1]);