> What I think about for a long time is the use of shell > scripts as mmh commands. I see the great leverage we get > from shell scripting, but OTOH I see the inconsistency > that creeps into our so consistent C framework. All C tools > behave just the same. The shell scripts behave differently > and if we want to change that, then we need to build up a > new sbr/ library but now in sh. -- I see the problem but I > don't see the answer.
One option would be use GNU Autogen (https://gnu.org/software/autogen) templating engine. Part of it is AutoOpts -- tool to generate command line parsing code. It supports both C and sh. Unfortunately, there is no support for -foo options, only --foo, as far as I know. -- X-Web-Site: https://sinsekvu.github.io | Note that I process my email in batch, Accept-Languages: eo,ru,en | at most once every 24 hours. If matter Accept: text/plain, text/x-diff | is urgent, you have my phone number.
pgpCzGbgeIPqA.pgp
Description: PGP signature