Skip to content

Commit a110381

Browse files
committed
Change function name
1 parent 2e6eec9 commit a110381

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ source $(pwd)/lib/args.sh
1616
For use this script, you define what argument name and variable that will receive value, like example below.
1717

1818
```bash
19-
my_key=$(get_param_value "my-amazing-secret-key" "$@")
19+
my_key=$(bash_args_get_value "my-amazing-secret-key" "$@")
2020
echo $my_key
2121
```
2222

lib/args.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Simple way for get arguments in your bash script
55
# https://github.com/joubertredrat/bash-args
66

7-
get_param_value() {
7+
bash_args_get_value() {
88
arg=$1
99
while [[ $# > 0 ]] ; do
1010
case "$1" in

tests/script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55

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

8-
arg_foo=$(get_param_value "foo" "$@")
8+
arg_foo=$(bash_args_get_value "foo" "$@")
99
echo $arg_foo

0 commit comments

Comments
 (0)