diff options
author | Colin Okay <colin@cicadas.surf> | 2022-08-15 11:40:24 -0500 |
---|---|---|
committer | Colin Okay <colin@cicadas.surf> | 2022-08-15 11:40:24 -0500 |
commit | 331eef1cdcc2fb183ca6ac3945b332dfd8581bff (patch) | |
tree | 6d4db3e6e6a464298c71d0831039ecd7fccdf974 /threadcat | |
parent | 921ff76178a468552189137076193ed70dd7ffbe (diff) |
[add] [feature] sub-boards
Diffstat (limited to 'threadcat')
-rwxr-xr-x | threadcat | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -9,20 +9,20 @@ if [ -z "${THREADCAT_USER}" ]; then fi if [ -z "${THREADCAT_SUBCOMMAND}" ]; then - echo "USAGE: threadcat <COMMAND> [THREAD]" + echo "USAGE: threadcat <COMMAND> [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 |