mirror of
https://github.com/Pmodules/Pmodules.git
synced 2026-06-29 02:39:39 +02:00
Merge branch '312-modulecmd-print-help-if-modulecmd-is-called-without-arg' into 'master'
Resolve "modulecmd: print help if modulecmd is called without arg" Closes #312 See merge request Pmodules/src!291
This commit is contained 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 )
|
||||
|
||||
Reference in New Issue
Block a user