CreatBotCrowsnest/libs/messages.sh
Stephan Wendel 6c8a9df33f
Cleanup: Trimmed trailing whitespace
Signed-off-by: Stephan Wendel <me@stephanwe.de>
2021-12-08 20:33:44 +01:00

35 lines
808 B
Bash
Executable File

#!/bin/bash
#### message library
#### webcamd - A webcam Service for multiple Cams and Stream Services.
####
#### written by Stephan Wendel aka KwadFan
#### Copyright 2021
#### https://github.com/mainsail-crew/crowsnest
####
#### This File is distributed under GPLv3
####
# Exit upon Errors
set -e
## Message Helpers
function missing_args_msg {
echo -e "webcamd: Missing Arguments!"
echo -e "\n\tTry: webcamd -h\n"
}
function wrong_args_msg {
echo -e "webcamd: Wrong Arguments!"
echo -e "\n\tTry: webcamd -h\n"
}
function help_msg {
echo -e "webcamd - webcam deamon\nUsage:"
echo -e "\t webcamd [Options]"
echo -e "\n\t\t-h Prints this help."
echo -e "\n\t\t-v Prints Version of webcamd."
echo -e "\n\t\t-c </path/to/configfile>\n\t\t\tPath to your webcam.conf\n"
}