[pykickstart][PATCH] New 'eula' command
Chris Lumens
clumens at redhat.com
Mon Sep 23 18:39:39 UTC 2013
> + 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", ...)
If I don't do it, I ought to.
- Chris
More information about the anaconda-patches
mailing list