[Rpm-maint] [rpm-software-management/rpm] scripts/pythondistdeps: Switch to argparse (#1181)

Igor Gnatenko notifications at github.com
Thu Apr 16 06:07:35 UTC 2020


@ignatenkobrain commented on this pull request.



> +parser.add_argument('-P', '--provides', action='store_true', help='Print Provides')
+parser.add_argument('-R', '--requires', action='store_true', help='Print Requires')
+parser.add_argument('-r', '--recommends', action='store_true', help='Print Recommends')
+parser.add_argument('-C', '--conflicts', action='store_true', help='Print Conflicts')
+parser.add_argument('-E', '--extras', action='store_true', help='Print Extras')

Sure, but since we are now doing refactor of this code, it makes sense to implement things like this so it is not possible to pass bunch of parameters which together do not make sense.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/1181#discussion_r409303168
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200415/96fb114c/attachment.html>


More information about the Rpm-maint mailing list