From 3db7a3b944ec79e3a6346114f98ecef3c6da8369 Mon Sep 17 00:00:00 2001 From: Michael Boelen Date: Wed, 21 Aug 2019 13:48:36 +0200 Subject: [PATCH] Move -c also to list of deprecated items --- include/parameters | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/include/parameters b/include/parameters index 483f2193..74f2c9a0 100644 --- a/include/parameters +++ b/include/parameters @@ -224,12 +224,6 @@ fi ;; - # Perform tests (deprecated, use audit system) - --check-all | --checkall | -c) - DisplayToolTip "Usage of option -c is deprecated. Please use: lynis audit system [options]" - CHECK=1 - ;; - # Cronjob support --cron-job | --cronjob | --cron) CRONJOB=1 @@ -424,16 +418,23 @@ # Soon to be deprecated options + # Perform tests (deprecated, use audit system) + --check-all | --checkall | -c) + echo "This option (-c) is deprecated." + echo "Use: lynis audit system [options]" + ExitFatal + ;; + # View program/database information --check-update | --check-updates | --info) - echo "This option is deprecated" + echo "This option (--info) is deprecated" echo "Use: lynis update info" ExitFatal ;; # Display all available options with short alias --dump-options | --dumpoptions) - echo "This option is deprecated" + echo "This option (--dump-options) is deprecated" echo "Use: lynis show options" ExitFatal ;;