[pykickstart][PATCH] New 'eula' command
Vratislav Podzimek
vpodzime at redhat.com
Tue Sep 24 12:35:34 UTC 2013
On Mon, 2013-09-23 at 14:39 -0400, Chris Lumens wrote:
> > + def _getParser(self):
> > + op = KSOptionParser()
> > + # allow both 'agreed' and 'agree' to be used
> > + op.add_option("--agreed", dest="agreed", action="store_true", default=False)
> > + op.add_option("--agree", dest="agreed", action="store_true", default=False)
> > + op.add_option("--accepted", dest="agreed", action="store_true", default=False)
> > + op.add_option("--accept", dest="agreed", action="store_true", default=False)
>
> I may not do this throughout pykickstart, but you can pass multiple long
> options to add_option:
>
> op.add_option("--agreed", "--agree", ...)
Neat! I had no idea that's possible. Fixing locally.
--
Vratislav Podzimek
Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic
More information about the anaconda-patches
mailing list