From 537752c60cf2e11ac67825be9f98959e57853e63 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 15 Apr 2017 08:18:40 +0300 Subject: str_split: interface update --- %HOME%/.bash_utils/text.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '%HOME%') diff --git a/%HOME%/.bash_utils/text.sh b/%HOME%/.bash_utils/text.sh index 15fb17f..e27d392 100644 --- a/%HOME%/.bash_utils/text.sh +++ b/%HOME%/.bash_utils/text.sh @@ -138,10 +138,10 @@ str_split() ( shift case "$key" in -h|--help) - echo "usage: ${FUNCNAME[0]} [-h|--help] [-0|-z|--zero] [--] STR DELIM" + echo "usage: ${FUNCNAME[0]} [-h|--help] [-0|--null|-z|--zero] [--] STR DELIM" return 0 ;; - -0|-z|--zero) + -0|--null|-z|--zero) fmt='%s\0' ;; --) @@ -160,7 +160,7 @@ str_split() ( args+=("$@") if [ "${#args[@]}" -ne 2 ]; then - echo "usage: ${FUNCNAME[0]} [-h|--help] [-0|-z|--zero] [--] STR DELIM" >&2 + echo "usage: ${FUNCNAME[0]} [-h|--help] [-0|--null|-z|--zero] [--] STR DELIM" >&2 return 1 fi -- cgit v1.2.3