bargs
bargs copied to clipboard
A framework for creating a Bash CLI application.
This PR adds a check that `$BASH_VERSION` is at least the minimum version (4.4 as stated in the README), and exits early if not. I've also added tests for this...
macOS's `bash` is version 3.2.57, which is very out of date and incompatible with `bargs.sh`. This PR updates the README explaining this, and providing the appropriate `brew` command to install...
This PR adds support for hyphenated CLI args like: `--option-with-hyphens` The corresponding shell variable name is normalized to underscores like: `$option_with_hyphens` This behavior is similar to other argument parsing libraries,...
Surprisingly this project got 117 stars, as of writing these lines. Any chance you can share your thoughts about `bargs`? Anything that is missing/can be improved? I'm super curious
Hi there, Doing something like `example.sh -hp` before this PR would yield ``` [ERROR] Empty argument "happy" Usage: ``` This small addition should fix this behavior. I don't know this...
Keeping your Docker base image up-to-date means you’ll benefit from security fixes in the latest version of your chosen image. #### Changes included in this PR - Dockerfile.example We recommend...
Keeping your Docker base image up-to-date means you’ll benefit from security fixes in the latest version of your chosen image. #### Changes included in this PR - Dockerfile.example We recommend...
**Description** Currently, `bargs` exports variables `UPPER_CASE` and `lower_case`. I'm using a very strict naming convention, see [Writing Bash Scripts Like A Pro - Part 1 - Styling Guide ](https://meirg.co.il/2021/10/25/writing-bash-scripts-like-a-pro-part-1-styling-guide/#variables-naming-convention) TypeScopeConventionEnvironmentGlobalMY_VARIABLEGlobalGlobal_MY_VARIABLELocalFunctionmy_variable...
Keeping your Docker base image up-to-date means you’ll benefit from security fixes in the latest version of your chosen image. #### Changes included in this PR - Dockerfile.example We recommend...
Keeping your Docker base image up-to-date means you’ll benefit from security fixes in the latest version of your chosen image. #### Changes included in this PR - Dockerfile.example We recommend...