Improve your Bash scripts with Argbash

Full Article :

Fedora Magazine -

Do you write or maintain non-trivial bash scripts? If so, you probably want them to accept command-line arguments in a standard and robust way. Fedora recently got a nice addition which can help you produce better scripts. And don’t worry, it won’t cost you much of your time or energy.

Why Argbash?

Bash is an interpreted command-line language with no standard library. Therefore, if you write bash scripts and want command-line interfaces that conform to POSIX and GNU CLI standards, you’re used to only two options:

Write the argument-parsing functionality tailored to your script yourself (possibly using the getopts

Leave a Comment

%d bloggers like this: