From b88b22954a8aa516c8781deabb757eb9dac539b7 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Sun, 12 Dec 2021 03:55:28 +0530 Subject: Added help --- discord_input.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/discord_input.sh b/discord_input.sh index 37930c5..bde9c56 100755 --- a/discord_input.sh +++ b/discord_input.sh @@ -19,12 +19,24 @@ switch_discord_input=ask sink_name=merged_streams sink_description="" -while getopts 'n:s:N:D' flag; do +show_help() { + echo -e "Usage:" + echo -e "\tNo Flags: Interactive Mode" + echo -e "-n\tSpecify Number Of Streams" + echo -e "-s\tSwitch Discord's Input Or Not (yes/no/ask)" + echo -e "-N\tSpecify a Name For The Merged Sink" + echo -e "-D\tSpecify a Description For The Merged Sink" + + exit +} + +while getopts 'n:s:N:D:h' flag; do case "${flag}" in n) no_of_streams="${OPTARG}" ;; s) switch_discord_input="${OPTARG}" ;; N) sink_name="${OPTARG}" ;; D) sink_description="${OPTARG}" ;; + h) show_help ;; *) ;; esac done -- cgit v1.2.3