Re:Bash code generator for command-line arguments
by thangalin on Friday October 02, 2020 @01:30PM
(#24664894)
There's a bit of code duplication[0] that often emerges as a result of parsing command-line arguments in shell scripts. The duplication can be eliminated by defining[1] the set of arguments to pass into a reusable template script[2].
[0]: https://dave.autonoma.ca/blog/2019/06/16/typesetting-markdow...
[1]: https://github.com/DaveJarvis/keenwrite/blob/master/installe...
[2]: https://github.com/DaveJarvis/keenwrite/blob/master/build-te...