about summary refs log tree commit diff stats
path: root/hm/soispha/pkgs/scripts/specific
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2024-01-06 21:32:44 +0100
committerSoispha <soispha@vhack.eu>2024-01-06 21:32:44 +0100
commit0b77143e40e43147ee3e9964d84c5e272b5e42fb (patch)
tree911c7d9810a37c52fc98f76d1aef5501abc37fe1 /hm/soispha/pkgs/scripts/specific
parentfeat(hm/pkgs/scr/specific/ytcc/yts): Add cli interface (diff)
downloadnixos-config-0b77143e40e43147ee3e9964d84c5e272b5e42fb.zip
docs(hm/pkgs/scr/specific/ytcc/yts): Add a help text
Diffstat (limited to '')
-rwxr-xr-xhm/soispha/pkgs/scripts/specific/ytcc/yts29
1 files changed, 29 insertions, 0 deletions
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")