DEV Community

Cover image for Best way for argument parsing in bash
Daniele Fontani
Daniele Fontani

Posted on • Originally published at betterprogramming.pub

Best way for argument parsing in bash

What is the better solution for input parsing and script management?

Both of the features are accomplished by modern languages. Just think about it, in node, .net, or PHP, you have a repository of packages and you can download executables that the package manager installs in your local. This way, content can be used to share the programs you have created with others using the public or private repository.

All those languages offer (directly or using easy-to-integrate libraries) a way to freely build the information about the console commands and the options listing. Moreover, that solution also resolves the argument parsing issue. But what about bash?

In this article, we will discover Bashy, a tool written in Go that aims to solve all these issues by empowering BASH scripts to parse arguments using declarative manifest and script sharing.
Read the article

Top comments (0)