Add version and basic help information

This commit is contained in:
2012-04-22 11:52:52 +01:00
parent ed8743facb
commit 5b73edcead
3 changed files with 43 additions and 2 deletions

View File

@@ -15,9 +15,14 @@ export PATH="$TMUXIFIER/libexec:$PATH"
command="$1"
case "$command" in
"" | "-h" | "--help" | "help" )
echo "[ put help message here ]"
"" | "-h" | "--help" )
echo -e "tmuxifier $(tmuxifier-version)\n$(tmuxifier-help)" >&2
;;
"-v" | "--version" )
tmuxifier-version
;;
* )
command_path="$(command -v "tmuxifier-$command" || true)"
if [ -z $command_path ]; then