DEV Community

Discussion on: Build a simple CLI with Bash

Collapse
 
adiatma profile image
Adiatma Kamaarudin

Hi Pavel, thanks for the suggestions, the article just has a purpose to introduce the basic way to using bash script.

Collapse
 
trueneu profile image
Pavel Gurkov

No worries.
I understand it's introducing the basic way. It's just, you have to take it only a little bit further to run into problems your article doesn't cover. Instead of using a standard, well-documented way, you're re-inventing the wheel with no pros. For instance, if I have more than one option, what do I do? If my options take values, what do I do? Also, the way you've described doesn't respect the POSIX convention (only arguments that start with a hyphen are options, may be clustered etc) (gnu.org/software/libc/manual/html_...).