Skip to content

Commit

Permalink
Change function name
Browse files Browse the repository at this point in the history
  • Loading branch information
joubertredrat committed Dec 19, 2018
1 parent 2e6eec9 commit a110381
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ source $(pwd)/lib/args.sh
For use this script, you define what argument name and variable that will receive value, like example below.

```bash
my_key=$(get_param_value "my-amazing-secret-key" "$@")
my_key=$(bash_args_get_value "my-amazing-secret-key" "$@")
echo $my_key
```

Expand Down
2 changes: 1 addition & 1 deletion lib/args.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# Simple way for get arguments in your bash script
# https://github.com/joubertredrat/bash-args

get_param_value() {
bash_args_get_value() {
arg=$1
while [[ $# > 0 ]] ; do
case "$1" in
Expand Down
2 changes: 1 addition & 1 deletion tests/script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@

source $(pwd)/../lib/args.sh

arg_foo=$(get_param_value "foo" "$@")
arg_foo=$(bash_args_get_value "foo" "$@")
echo $arg_foo

0 comments on commit a110381

Please sign in to comment.