DEV Community

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

Posted on • Originally published at betterprogramming.pub

1

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

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay