🌀 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.7.1.tar.gz
(5.2 kB
view hashes)
Built Distribution
Close
Hashes for blue_options-4.7.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bfffbd9cfaad67a152fd972ce95cc342e16060e1d4d885c3e31bdeee5c35040d |
|
MD5 | 94ae3153e6a8fd2fa4b7775a8456424b |
|
BLAKE2b-256 | f0e9ba181e58b5160ff7618b37e44370f0df80e415d34085270283a917918389 |