diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | libs/core.bash.in | 4 |
2 files changed, 9 insertions, 0 deletions
@@ -1,5 +1,10 @@ ChangeLog for eclectic +2005-05-14 Aaron Walker <ka0ttic@gentoo.org> + + * libs/core.bash.in: Updated do_action() to display the correct usage + message depending on how eclectic was invoked. + 2005-05-14 Ciaran McCreesh <ciaranm@gentoo.org> * modules/mailer.eclectic, modules/vi.eclectic, diff --git a/libs/core.bash.in b/libs/core.bash.in index 695191b..eafb29f 100644 --- a/libs/core.bash.in +++ b/libs/core.bash.in @@ -88,6 +88,10 @@ do_action() { ECLECTIC_MODULE_NAME="${action}" ECLECTIC_COMMAND="${ECLECTIC_PROGRAM_NAME} ${ECLECTIC_MODULE_NAME}" + + [[ ${ECLECTIC_BINARY_NAME##*/} != ${ECLECTIC_PROGRAM_NAME} ]] && \ + ECLECTIC_COMMAND="${ECLECTIC_BINARY_NAME##*/}" + modfile=$( ec_find_module "${action}" ) ( source "$ECLECTIC_DEFAULT_ACTIONS" 2>/dev/null \ |