diff options
Diffstat (limited to '')
-rw-r--r-- | .bashrc_cxx | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/.bashrc_cxx b/.bashrc_cxx index 8243167..7ce52ee 100644 --- a/.bashrc_cxx +++ b/.bashrc_cxx @@ -16,7 +16,10 @@ runc() ( echo "$FUNCNAME: missing argument for parameter: $1" >&2 return 1 fi - shift ; c_flags+=("$1") ; shift ;; + shift + c_flags+=("$1") + shift + ;; -h) echo "usage: $FUNCNAME [-h] [-c|--c-flags FLAG]" @@ -24,10 +27,14 @@ runc() ( ;; --) - shift ; break ;; + shift + break + ;; *) - src_files+=("$( realpath "$1" )") ; shift ;; + src_files+=("$( realpath "$1" )") + shift + ;; esac done @@ -61,7 +68,10 @@ runcxx() ( echo "$FUNCNAME: missing argument for parameter: $1" >&2 return 1 fi - shift ; cxx_flags+=("$1") ; shift ;; + shift + cxx_flags+=("$1") + shift + ;; -h) echo "usage: $FUNCNAME [-h] [-c|--cxx-flags FLAG]" @@ -69,10 +79,14 @@ runcxx() ( ;; --) - shift ; break ;; + shift + break + ;; *) - src_files+=("$( realpath "$1" )") ; shift ;; + src_files+=("$( realpath "$1" )") + shift + ;; esac done |