[Rpm-maint] [rpm-software-management/rpm] RFE: pass parametric macro options and arguments to Lua natively (#1092)
nim-nim
notifications at github.com
Thu Oct 8 09:35:32 UTC 2020
@hroncok from the lua language POW you need a tristate for flags: nil (not passed), true (passed as true), false (passed as false). Otherwise it’s real easy to be confused when handling things that have a default state absent any flag, or an antonym (with/without, quiet/verbose, etc), or
One may argue that that does not matter given the primitive state of the current rpm argument parser, but what that actually tells me building a new API, that bakes existing parsing problems even deeper, is quite unwise.
@pmatilai has the right general idea but it would probably be safer to expose arguments using an existing cli parsing API (such as lua argparse) and not embark in a journey to rediscover problems others mastered a long time ago.
--
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/issues/1092#issuecomment-705452828
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20201008/88322bf0/attachment-0001.html>
More information about the Rpm-maint
mailing list