aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@protonmail.ch>2021-12-12 03:55:28 +0530
committerVidhu Kant Sharma <vidhukant@protonmail.ch>2021-12-12 03:55:28 +0530
commitb88b22954a8aa516c8781deabb757eb9dac539b7 (patch)
tree7535babaf840b94a1498d91f5dff13db708db814
parent4e4f8f2b0b63855d5ce280388f07fac50e146f43 (diff)
Added help
-rwxr-xr-xdiscord_input.sh14
1 files changed, 13 insertions, 1 deletions
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