added verbosity level 7, that addes -i and -xx

This commit is contained in:
inxi-svn 2011-07-08 21:16:19 +00:00
parent e587e78fdc
commit 9bcd044736

8
inxi
View file

@ -374,7 +374,7 @@ SHOW_IRC=2
# Verbosity level defaults to 0, this can also be set with -v0, -v2, -v3, etc as a parameter.
VERBOSITY_LEVEL=0
# Supported number of verbosity levels, including 0
VERBOSITY_LEVELS=6
VERBOSITY_LEVELS=7
# Clear nullglob, because it creates unpredictable situations with IFS=$'\n' ARR=($VAR) IFS="$ORIGINAL_IFS"
# type constructs. Stuff like [rev a1] is now seen as a glob expansion pattern, and fails, and
@ -1952,11 +1952,14 @@ get_parameters()
B_SHOW_UUIDS='true'
fi
if [[ $OPTARG -ge 6 ]];then
B_SHOW_EXTRA_EXTRA_DATA='true'
B_SHOW_FULL_OPTICAL='true'
B_SHOW_PARTITIONS_FULL='true'
B_SHOW_UNMOUNTED_PARTITIONS='true'
fi
if [[ $OPTARG -ge 7 ]];then
B_SHOW_EXTRA_EXTRA_DATA='true'
B_SHOW_IP='true'
fi
else
error_handler 4 "$OPTARG"
fi
@ -2156,6 +2159,7 @@ show_options()
print_screen_output " Shows full disk data (-D)"
print_screen_output " 5 - Adds audio card (-A); sensors (-s), partion label (-l) and UUID (-u), short form of optical drives."
print_screen_output " 6 - Adds full partition data (-p), unmounted partition data (-o), optical drive data (-d)."
print_screen_output " 7 - Adds network IP data (-i); triggers -xx."
print_screen_output "-x Show extra data (only works with verbose or line output, not short form): "
print_screen_output " -C - bogomips on Cpu;"
print_screen_output " -d - Adds items to features line of optical drive; adds rev version to optical drive."