From 93e0f6b1e78d0de6db2e07e9a2f30ed1f0673175 Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Mon, 12 Aug 2024 16:35:42 +0200 Subject: [PATCH] modulecmd: print help if modulecmd is called without args --- Pmodules/modulecmd.bash.in | 1 + 1 file changed, 1 insertion(+) diff --git a/Pmodules/modulecmd.bash.in b/Pmodules/modulecmd.bash.in index a1a5048..0b93738 100644 --- a/Pmodules/modulecmd.bash.in +++ b/Pmodules/modulecmd.bash.in @@ -3507,6 +3507,7 @@ subcommand_initclear() { # parse arguments # +(( $# > 0 )) || print_help 'help' # first argument must be a shell! case "$1" in sh | bash | zsh )