Hacker News new | past | comments | ask | show | jobs | submit login

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 \
    )"`



Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: