Commit 694dcdaf authored by Emeric Verschuur's avatar Emeric Verschuur

[FIX] column width detection

parent ab3f9ac2
Pipeline #79 passed with stage
in 16 seconds
......@@ -362,8 +362,9 @@ bashopts_dump_value() {
# display the formated help
bashopts_diplay_help() {
local elts optargs_max_len=8 val dval ncol=$(tput cols 2>/dev/null || true)
local elts optargs_max_len=8 val dval ncol
declare -A optargs
ncol=$(tput cols || true) 2> /dev/null
# compute the good arguments comumn size
for op in "${bashopts_optlist[@]}"; do
elts=()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment