mirror of https://github.com/CISOfy/lynis.git
Changed colors and text of default help
This commit is contained in:
parent
cdebe9dc06
commit
998e63535c
45
lynis
45
lynis
|
@ -354,7 +354,7 @@ ${YELLOW}Note: ${WHITE}Cancelling the program can leave temporary files behind${
|
|||
if [ ${PARAMCOUNT} -eq 0 -o ${WRONGOPTION} -eq 1 -o ${VIEWHELP} -eq 1 ]; then
|
||||
printf "%s" "
|
||||
|
||||
${GREEN}Usage:${NORMAL} lynis ${CYAN}command ${WHITE}[options]${NORMAL}
|
||||
${GREEN}Usage:${NORMAL} lynis ${CYAN}command ${GRAY}[options]${NORMAL}
|
||||
|
||||
|
||||
${WHITE}Command:${NORMAL}
|
||||
|
@ -375,29 +375,29 @@ ${YELLOW}Note: ${WHITE}Cancelling the program can leave temporary files behind${
|
|||
|
||||
${WHITE}Options:${NORMAL}
|
||||
|
||||
${BLUE}--auditor ${BROWN}\"<name>\"${NORMAL} : Auditor name
|
||||
${BLUE}--dump-options${NORMAL} : See all available options
|
||||
${BLUE}--no-log${NORMAL} : Don't create a log file
|
||||
${BLUE}--pentest${NORMAL} : Non-privileged scan (useful for pentest)
|
||||
${BLUE}--profile ${BROWN}<profile>${NORMAL} : Scan the system with the given profile file
|
||||
${BLUE}--quick (-Q)${NORMAL} : Quick mode, don't wait for user input
|
||||
${BLUE}--tests ${BROWN}\"<tests>\"${NORMAL} : Run only tests defined by <tests>
|
||||
${BLUE}--tests-category ${BROWN}\"<category>\"${NORMAL} : Run only tests defined by <category>
|
||||
${GRAY}--auditor ${BROWN}\"<name>\"${NORMAL} : Auditor name
|
||||
${GRAY}--dump-options${NORMAL} : See all available options
|
||||
${GRAY}--no-log${NORMAL} : Don't create a log file
|
||||
${GRAY}--pentest${NORMAL} : Non-privileged scan (useful for pentest)
|
||||
${GRAY}--profile ${BROWN}<profile>${NORMAL} : Scan the system with the given profile file
|
||||
${GRAY}--quick (-Q)${NORMAL} : Quick mode, don't wait for user input
|
||||
${GRAY}--tests ${BROWN}\"<tests>\"${NORMAL} : Run only tests defined by <tests>
|
||||
${GRAY}--tests-category ${BROWN}\"<category>\"${NORMAL} : Run only tests defined by <category>
|
||||
|
||||
${GRAY}Layout options${NORMAL}
|
||||
${BLUE}--no-colors${NORMAL} : Don't use colors in output
|
||||
${BLUE}--quiet (-q)${NORMAL} : No output, except warnings
|
||||
${BLUE}--reverse-colors${NORMAL} : Optimize color display for light backgrounds
|
||||
${WHITE}Layout options${NORMAL}
|
||||
${GRAY}--no-colors${NORMAL} : Don't use colors in output
|
||||
${GRAY}--quiet (-q)${NORMAL} : No output, except warnings
|
||||
${GRAY}--reverse-colors${NORMAL} : Optimize color display for light backgrounds
|
||||
|
||||
${GRAY}Misc options${NORMAL}
|
||||
${BLUE}--debug${NORMAL} : Debug logging to screen
|
||||
${BLUE}--view-manpage (--man)${NORMAL} : View man page
|
||||
${BLUE}--verbose${NORMAL} : Show more details on screen
|
||||
${BLUE}--version (-V)${NORMAL} : Display version number and quit
|
||||
${WHITE}Misc options${NORMAL}
|
||||
${GRAY}--debug${NORMAL} : Debug logging to screen
|
||||
${GRAY}--view-manpage (--man)${NORMAL} : View man page
|
||||
${GRAY}--verbose${NORMAL} : Show more details on screen
|
||||
${GRAY}--version (-V)${NORMAL} : Display version number and quit
|
||||
|
||||
${GRAY}Enterprise options${NORMAL}
|
||||
${BLUE}--plugin-dir ${BROWN}\"<path>\"${NORMAL} : Define path of available plugins
|
||||
${BLUE}--upload${NORMAL} : Upload data to central node
|
||||
${WHITE}Enterprise options${NORMAL}
|
||||
${GRAY}--plugin-dir ${BROWN}\"<path>\"${NORMAL} : Define path of available plugins
|
||||
${GRAY}--upload${NORMAL} : Upload data to central node
|
||||
|
||||
More options available. Run 'lynis show options', or use the man page.
|
||||
|
||||
|
@ -407,7 +407,8 @@ ${YELLOW}Note: ${WHITE}Cancelling the program can leave temporary files behind${
|
|||
echo " ${RED}Error${NORMAL}: ${WHITE}Invalid option '${WRONGOPTION_value}'${NORMAL}"
|
||||
else
|
||||
if [ ${VIEWHELP} -eq 0 ]; then
|
||||
echo " ${RED}Error${NORMAL}: ${WHITE}No command specified.${NORMAL} Exiting.."
|
||||
echo " ${RED}No command specified.${WHITE} Exiting..${NORMAL}"
|
||||
echo ""
|
||||
fi
|
||||
fi
|
||||
echo ""
|
||||
|
|
Loading…
Reference in New Issue