c20b04
From fe274b8f965582fdf97e6c46f90b9e7c124b0b8b Mon Sep 17 00:00:00 2001
c20b04
From: Florian Festi <ffesti@redhat.com>
c20b04
Date: Fri, 16 Dec 2022 15:50:12 +0100
c20b04
Subject: [PATCH] rpm2archive: Don't print usage on no arguments
c20b04
c20b04
given as we want to default to reading from stdin and writing to stdout in
c20b04
that case.
c20b04
---
c20b04
 rpm2archive.c | 4 ----
c20b04
 1 file changed, 4 deletions(-)
c20b04
c20b04
diff --git a/rpm2archive.c b/rpm2archive.c
c20b04
index 09da8d16b..53f047f58 100644
c20b04
--- a/rpm2archive.c
c20b04
+++ b/rpm2archive.c
c20b04
@@ -241,10 +241,6 @@ int main(int argc, const char *argv[])
c20b04
 	    exit(EXIT_FAILURE);
c20b04
 	}
c20b04
     }
c20b04
-    if (argc < 2 || poptGetNextOpt(optCon) == 0) {
c20b04
-	poptPrintUsage(optCon, stderr, 0);
c20b04
-	exit(EXIT_FAILURE);
c20b04
-    }
c20b04
 
c20b04
     rpmts ts = rpmtsCreate();
c20b04
     rpmVSFlags vsflags = 0;
c20b04
-- 
c20b04
2.38.1
c20b04