4
0
Fork 0
ldap-admin/bin/help

11 lines
244 B
Bash
Executable File

#!/bin/bash
#% help [command]
#% Describe command. If command is not given, show this message.
CMD=${1:-help}
grep '^#%.*' `which $CMD` | sed -e "s/^#%//"
if [[ "$CMD" == "help" ]]; then
echo
echo "Available commands are:"
ls $BIN_DIR
fi