From f11f549388eae9e94a6683d2029bfe776b79dafd Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: May 17 2011 02:30:05 +0000 Subject: Update help.sh. --- diff --git a/Scripts/Functions/Help/help.sh b/Scripts/Functions/Help/help.sh index ba64ee9..ec92215 100755 --- a/Scripts/Functions/Help/help.sh +++ b/Scripts/Functions/Help/help.sh @@ -133,6 +133,15 @@ function help { fi + # Verify non-option arguments. When non-option arguments are + # passed to `centos-art.sh' script, use the base manual directory + # structure. This make possible that option like `--search' and + # `--update' can be executed without passing any `path/to/dir' + # information in the command line. + if [[ $ARGUMENTS == '' ]];then + ARGUMENTS=${MANUAL_BASEDIR} + fi + # Define action name. It does matter what option be passed to # centos-art, there are many different actions to perform based on # the option passed (e.g., `--edit', `--read', `--search', etc.).