aboutsummaryrefslogtreecommitdiffhomepage
path: root/threadcat
diff options
context:
space:
mode:
Diffstat (limited to 'threadcat')
-rwxr-xr-xthreadcat18
1 files changed, 9 insertions, 9 deletions
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 <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