From 3b1100ba1f5cbf1b1ebde65adec82d13d6cc62a6 Mon Sep 17 00:00:00 2001 From: Tomas Orsava Date: Wed, 22 Apr 2020 14:22:16 +0200 Subject: [PATCH] scripts/pythondistdeps: Add parameter --package-name --- pythondistdeps.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pythondistdeps.py b/pythondistdeps.py index ee67e6f..93a9fd3 100755 --- a/pythondistdeps.py +++ b/pythondistdeps.py @@ -171,7 +171,8 @@ if __name__ == "__main__": help='Provide both `pep503` and `legacy-dots` format of normalized names (useful for a transition period)') parser.add_argument('-L', '--legacy-provides', action='store_true', help='Print extra legacy pythonegg Provides') parser.add_argument('-l', '--legacy', action='store_true', help='Print legacy pythonegg Provides/Requires instead') - parser.add_argument('files', nargs=argparse.REMAINDER) + parser.add_argument('--package-name', action='store', help="Name of the RPM package that's being inspected") + parser.add_argument('files', nargs=argparse.REMAINDER, help="Files from the RPM package that are to be inspected, can also be supplied on stdin") args = parser.parse_args() py_abi = args.requires