News for hackers. Stuff that matters.
Re:Bash code generator for command-line arguments by buu700 on Friday October 02, 2020 @01:06PM (#24664670)
Argbash is great. I found the output unnecessarily verbose for the simple functionality that I wanted, so the way I've used it has been to put the following in a script/function and then eval the output: https://gist.github.com/buu700/72d0461d318bfe8c11e36d2316882...

That would then be used like:

    eval "$(parseArgs \
        --opt foo \
        --opt-bool bar \
        --pos balls \
    )"`

There are no comments on this comment yet.