10 lines
244 B
Bash
Executable file
10 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
|