🌀 an options for Bash.
Project description
🌀 blue_options
🌀 blue_options
implements an options
for Bash.
installation
pip install blue_options
add this line to your ~/.bash_profile
or ~/.bashrc
,
source $(python -m blue_options locate)/.bash/blue_options.sh
use
function func() {
local options=$1
local var=$(abcli_options "$options" var default)
local key=$(abcli_options_int "$options" key 0)
[[ "$key" == 1 ]] &&
echo "var=$var"
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
blue_options-4.8.1.tar.gz
(5.2 kB
view hashes)
Built Distribution
Close
Hashes for blue_options-4.8.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6ce41747de36074dd2348ab837084896581318912647f320cc077f95857a3b0 |
|
MD5 | aa8a9028ce30f785903da10d159b4f88 |
|
BLAKE2b-256 | 7ca8809646e75553ac74d2a3ae6a96d0678fad7dda597b5996ce2a86bb736870 |