Mailinglist Archive: zypp-commit (545 mails)
| < Previous | Next > |
[zypp-commit] r8679 - /trunk/sat-solver/tools/mergesolv.c
- From: kkaempf@xxxxxxxxxxxxxxxx
- Date: Thu, 14 Feb 2008 12:26:30 -0000
- Message-id: <20080214122630.41E471074A8@xxxxxxxxxxxxxxxx>
Author: kkaempf
Date: Thu Feb 14 13:26:29 2008
New Revision: 8679
URL: http://svn.opensuse.org/viewcvs/zypp?rev=8679&view=rev
Log:
add "-h" for help
Modified:
trunk/sat-solver/tools/mergesolv.c
Modified: trunk/sat-solver/tools/mergesolv.c
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/tools/mergesolv.c?rev=8679&r1=8678&r2=8679&view=diff
==============================================================================
--- trunk/sat-solver/tools/mergesolv.c (original)
+++ trunk/sat-solver/tools/mergesolv.c Thu Feb 14 13:26:29 2008
@@ -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 @@
{
FILE *fp;
argv++;
+ if (!strcmp(*argv,"-h"))
+ usage();
if ((fp = fopen(*argv, "r")) == NULL)
{
perror(argv[1]);
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx
Date: Thu Feb 14 13:26:29 2008
New Revision: 8679
URL: http://svn.opensuse.org/viewcvs/zypp?rev=8679&view=rev
Log:
add "-h" for help
Modified:
trunk/sat-solver/tools/mergesolv.c
Modified: trunk/sat-solver/tools/mergesolv.c
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/sat-solver/tools/mergesolv.c?rev=8679&r1=8678&r2=8679&view=diff
==============================================================================
--- trunk/sat-solver/tools/mergesolv.c (original)
+++ trunk/sat-solver/tools/mergesolv.c Thu Feb 14 13:26:29 2008
@@ -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 @@
{
FILE *fp;
argv++;
+ if (!strcmp(*argv,"-h"))
+ usage();
if ((fp = fopen(*argv, "r")) == NULL)
{
perror(argv[1]);
--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx
| < Previous | Next > |