CreatBotCrowsnest/libs/messages.sh
Stephan Wendel b96c2bd86a
BUGFIX: Typo in shellcheck directive
* 'requires' instead of 'require'

Signed-off-by: Stephan Wendel <me@stephanwe.de>
2021-12-17 22:02:00 +01:00

37 lines
853 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
####
# shellcheck enable=require-variable-braces
# 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"
}