Skip to content

Commit 0cbfb8e

Browse files
committed
Updated README and tests to address #19
1 parent 9f89d74 commit 0cbfb8e

File tree

7 files changed

+0
-8
lines changed

7 files changed

+0
-8
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
[![stable branch](https://img.shields.io/badge/dynamic/json.svg?color=lightgrey&label=stable&query=%24.default_branch&url=https%3A%2F%2Fapi.github.com%2Frepos%2FUrsaDK%2Fgetopts_long&logo=github)](https://github.com/UrsaDK/getopts_long/tree/master)
66
[![latest release](https://img.shields.io/badge/dynamic/json.svg?color=blue&label=release&query=%24.name&url=https%3A%2F%2Fapi.github.com%2Frepos%2FUrsaDK%2Fgetopts_long%2Freleases%2Flatest&logo=docker)](https://hub.docker.com/r/ursadk/getopts_long)
77
[![test coverage](https://codecov.io/gh/UrsaDK/getopts_long/graph/badge.svg)](https://codecov.io/gh/UrsaDK/getopts_long)
8-
[![donate link](https://img.shields.io/badge/donate-coinbase-gold.svg?colorB=ff8e00&logo=bitcoin)](https://commerce.coinbase.com/checkout/17ae30c2-9c3f-45fb-a911-36d01a3c81b6)
98

109
</div>
1110

@@ -157,7 +156,6 @@ while getopts_long ':af: all file:' OPTKEY; do
157156
done
158157

159158
shift $(( OPTIND - 1 ))
160-
[[ "${1}" == "--" ]] && shift
161159

162160
...
163161
```

test/bin/getopts-silent

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ while getopts ":to:v:" OPTKEY; do
2626
done
2727

2828
shift $(( OPTIND - 1 ))
29-
[[ "${1}" == "--" ]] && shift
3029

3130
echo "OPTERR: ${OPTERR}"
3231
echo "OPTKEY: ${OPTKEY}"

test/bin/getopts-verbose

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ while getopts "to:v:" OPTKEY; do
2323
done
2424

2525
shift $(( OPTIND - 1 ))
26-
[[ "${1}" == "--" ]] && shift
2726

2827
echo "OPTERR: ${OPTERR}"
2928
echo "OPTKEY: ${OPTKEY}"

test/bin/getopts_long-github_13-silent

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ while getopts_long ': toggle option: variable:' OPTKEY; do
3030
done
3131

3232
shift $(( OPTIND - 1 ))
33-
[[ "${1}" == "--" ]] && shift
3433

3534
echo "OPTERR: ${OPTERR}"
3635
echo "OPTKEY: ${OPTKEY}"

test/bin/getopts_long-github_13-verbose

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ while getopts_long ' toggle option: variable:' OPTKEY; do
2727
done
2828

2929
shift $(( OPTIND - 1 ))
30-
[[ "${1}" == "--" ]] && shift
3130

3231
echo "OPTERR: ${OPTERR}"
3332
echo "OPTKEY: ${OPTKEY}"

test/bin/getopts_long-silent

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ while getopts_long ':to:v: toggle option: variable:' OPTKEY; do
3030
done
3131

3232
shift $(( OPTIND - 1 ))
33-
[[ "${1}" == "--" ]] && shift
3433

3534
echo "OPTERR: ${OPTERR}"
3635
echo "OPTKEY: ${OPTKEY}"

test/bin/getopts_long-verbose

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ while getopts_long 'to:v: toggle option: variable:' OPTKEY; do
2727
done
2828

2929
shift $(( OPTIND - 1 ))
30-
[[ "${1}" == "--" ]] && shift
3130

3231
echo "OPTERR: ${OPTERR}"
3332
echo "OPTKEY: ${OPTKEY}"

0 commit comments

Comments
 (0)