forked from toolshed/abra
		
	Fix help function names
This commit is contained in:
		
							
								
								
									
										4
									
								
								abra
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								abra
									
									
									
									
									
								
							@ -1102,11 +1102,11 @@ sub_help() {
 | 
			
		||||
  if type "$HELP_CMD" > /dev/null 2>&1; then
 | 
			
		||||
    "$HELP_CMD"
 | 
			
		||||
  else
 | 
			
		||||
    HELP_COMMANDS=$(declare -Ff | grep 'help_' | cut -d' ' -f3)
 | 
			
		||||
    HELP_COMMANDS=$(declare -Ff | grep 'help_' | cut -d' ' -f3 | sed 's/_/ /g')
 | 
			
		||||
    error "No help found for '$abra__subcommands_'
 | 
			
		||||
 | 
			
		||||
Try one of these:
 | 
			
		||||
${HELP_COMMANDS//help_/}"
 | 
			
		||||
${HELP_COMMANDS//help /}"
 | 
			
		||||
  fi
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Reference in New Issue
	
	Block a user