4 ms·
What about lists? Something like: --allowed-downtime-0-start=20230523170000Z --allowed-downtime-0-end=20230523170500Z --allowed-downtime-1-start=... Or
by rfoo 3y ago
What about lists? Something like:
--allowed-downtime-0-start=20230523170000Z
--allowed-downtime-0-end=20230523170500Z
--allowed-downtime-1-start=...
Or
--allowed-downtime-start='20230523170000Z,...'
I can live with them, but neither looks clean :(
Genuine question, as I actually like the plain old flagfiles/Java-properties-ish style.
- enriquto 3y agoThe output produced by gron looks quite clean to me. You just write your file as if it was a list of js variable assignments. allowed-downtime[0][0] = 20230523170000Z allowed-downtime[0][1] = 20230523170500Z allowed-downtime[1][0] = ... or if you absolutely want the names, you can make a "list of dictionaries": allowed-downtime[0].start = ...