From 0b77143e40e43147ee3e9964d84c5e272b5e42fb Mon Sep 17 00:00:00 2001 From: Soispha Date: Sat, 6 Jan 2024 21:32:44 +0100 Subject: docs(hm/pkgs/scr/specific/ytcc/yts): Add a help text --- hm/soispha/pkgs/scripts/specific/ytcc/yts | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'hm/soispha/pkgs/scripts/specific') diff --git a/hm/soispha/pkgs/scripts/specific/ytcc/yts b/hm/soispha/pkgs/scripts/specific/ytcc/yts index 4d6cc6e6..d3508bba 100755 --- a/hm/soispha/pkgs/scripts/specific/ytcc/yts +++ b/hm/soispha/pkgs/scripts/specific/ytcc/yts @@ -4,6 +4,10 @@ SHELL_LIBRARY_VERSION="1.10.2" . %SHELL_LIBRARY_PATH TASK_UUID=ce4f9e07-8324-4570-8be6-967955e9271e +# these are used in version() +AUTHORS="Soispha" +YEARS="2023" +NAME="neorg" cleanup() { task stop "$TASK_UUID" @@ -19,6 +23,31 @@ help_text=" # These lines can be re-ordered; they are executed from top to bottom. # vim: ft=gitrebase" +help() { +cat << EOF +A help script to make selecting videos to play for ytcc easier. + +USAGE: + $NAME [OPTIONS] [COMMAND] + +OPTIONS: + --help | -h + Display this help and exit. + + --version | -v + Display version and copyright information and exit. +COMMANDS: + order MODE + Select the ordering mode. +ARGUMENTS: + MODE := date | raw + date will sort descending by publishing date, + whilest raw esxposes the ytcc interface. See + the help info of the 'ytcc list --help' + '--order-by' option for more details. +EOF +} + for arg in "$@"; do case "$arg" in "--help") -- cgit 1.4.1