Re:Bash functions are better than I thought
by drran on Monday November 01, 2021 @05:24AM
(#29064527)
Yes, arguments::generate_parser function. Install bash-modules, then run `. import.sh log arguments`, then call `arguments::generate_parser '--foo)FOO;String'` , and it will generate function with parser, which include parser for foo option for both `--foo VALUE` and `--foo=VALUE`:
[ Parent
| on HN ]
There are no comments on this comment yet.