From 331eef1cdcc2fb183ca6ac3945b332dfd8581bff Mon Sep 17 00:00:00 2001 From: Colin Okay Date: Mon, 15 Aug 2022 11:40:24 -0500 Subject: [add] [feature] sub-boards --- threadcat | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'threadcat') diff --git a/threadcat b/threadcat index 3703140..16c477a 100755 --- a/threadcat +++ b/threadcat @@ -9,20 +9,20 @@ if [ -z "${THREADCAT_USER}" ]; then fi if [ -z "${THREADCAT_SUBCOMMAND}" ]; then - echo "USAGE: threadcat [THREAD]" + echo "USAGE: threadcat [BOARD] [THREAD]" echo commands are: - echo " list lists threads, most recent first" - echo " read [THREAD] reads a thread, printing to stdout" - echo " write [THREAD] posts to THREAD from stdin" - echo " del [THREAD] delete a thread" + echo " list [BOARD] lists threads, most recent first" + echo " read [BOARD] THREAD reads a thread, printing to stdout" + echo " write [BOARD] THREAD posts to THREAD from stdin" + echo " del [BOARD] THREAD delete a thread" exit 0 fi case "$THREADCAT_SUBCOMMAND" in - "list" ) threadcat-list.sh ;; - "read" ) threadcat-read.sh $2 ;; - "write" ) threadcat-write.sh $2 ;; - "del" ) threadcat-delete.sh $2 ;; + "list" ) threadcat-list.sh $2 ;; + "read" ) threadcat-read.sh $2 $3 ;; + "write" ) threadcat-write.sh $2 $3 ;; + "del" ) threadcat-del.sh $2 $3 ;; * ) echo Unknown subcommand $THREADCAT_SUBCOMMAND echo commands are list, read, write, del;; esac -- cgit v1.2.3