mirror of https://github.com/CISOfy/lynis.git
Added 'details' to help
This commit is contained in:
parent
fdf3ded89f
commit
a425e9b0a1
|
@ -32,11 +32,12 @@ COMMANDS="audit show update"
|
|||
HELPERS="audit configure show update"
|
||||
OPTIONS="--auditor\n--check-all (-c)\n--config\n--cronjob (--cron)\n--debug\n--developer\n--help (-h)\n--license-key\n--log-file\n--manpage (--man)\n--no-colors --no-log\n--pentest\n--profile\n--plugins-dir\n--quiet (-q)\n--quick (-Q)\n--report-file\n--reverse-colors\n--tests\n--tests-from-category\n--tests-from-group\n--upload\n--verbose\n--version (-V)\n--wait"
|
||||
|
||||
SHOW_ARGS="categories changelog commands dbdir groups help hostids includedir language license logfile man options pidfile plugindir profiles release releasedate report settings tests version workdir"
|
||||
SHOW_ARGS="categories changelog commands dbdir details groups help hostids includedir language license logfile man options pidfile plugindir profiles release releasedate report settings tests version workdir"
|
||||
SHOW_HELP="lynis show ${BROWN}categories${NORMAL} (display test categories)
|
||||
lynis show ${BROWN}changelog${NORMAL} ${GRAY}[version]${NORMAL} (release details)
|
||||
lynis show ${BROWN}commands${NORMAL} (all available commands)
|
||||
lynis show ${BROWN}dbdir${NORMAL} (database directory)
|
||||
lynis show ${BROWN}details${NORMAL} (display test details from log file)
|
||||
lynis show ${BROWN}groups${NORMAL} (test groups)
|
||||
lynis show ${BROWN}help${NORMAL} (detailed information about arguments)
|
||||
lynis show ${BROWN}hostids${NORMAL} (unique IDs for this system)
|
||||
|
@ -212,7 +213,7 @@ if [ $# -gt 0 ]; then
|
|||
"details")
|
||||
if [ -z "${LOGFILE}" ]; then DisplayError "Could not find log file to parse"; fi
|
||||
if [ $# -eq 1 ]; then
|
||||
DisplayError "Provide a test ID"
|
||||
DisplayError "This command needs a test ID (e.g. CORE-1000) to search for."
|
||||
else
|
||||
shift
|
||||
if [ $# -eq 1 ]; then
|
||||
|
|
Loading…
Reference in New Issue