From 4ebf8fe74926a8eb79b68fbf5acf82ce7e900255 Mon Sep 17 00:00:00 2001 From: Amir Mohammad Saied Date: Thu, 5 Mar 2009 11:04:11 +0330 Subject: [PATCH] Updating documents --- bti.1 | 22 +++++++++++++++++++++- bti.c | 7 ++++--- bti.xml | 44 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 69 insertions(+), 4 deletions(-) diff --git a/bti.1 b/bti.1 index f3237a7..ea3b887 100644 --- a/bti.1 +++ b/bti.1 @@ -171,7 +171,7 @@ bti \- send a tweet to twitter\&.com or identi\&.ca from the command line .SH "Synopsis" .fam C .HP \w'\fBbti\fR\ 'u -\fBbti\fR [\fB\-\-account\ account\fR] [\fB\-\-password\ password\fR] [\fB\-\-host\ HOST_NAME\fR] [\fB\-\-proxy\ PROXY:PORT\fR] [\fB\-\-logfile\ LOGFILE\fR] [\fB\-\-bash\fR] [\fB\-\-debug\fR] [\fB\-\-version\fR] [\fB\-\-help\fR] +\fBbti\fR [\fB\-\-account\ account\fR] [\fB\-\-password\ password\fR] [\fB\-\-action\ action\fR] [\fB\-\-user\ screenname\fR] [\fB\-\-host\ HOST_NAME\fR] [\fB\-\-proxy\ PROXY:PORT\fR] [\fB\-\-logfile\ LOGFILE\fR] [\fB\-\-bash\fR] [\fB\-\-debug\fR] [\fB\-\-version\fR] [\fB\-\-help\fR] .fam .SH "DESCRIPTION" .PP @@ -188,6 +188,16 @@ Specify the twitter\&.com or identi\&.ca account name\&. Specify the password of your twitter\&.com or identi\&.ca account\&. .RE .PP +\fB\-\-action action\fR +.RS 4 +Specify the action which you want to perform\&. Valid options are "update" to send a message, "friends" to see your friends timeline, "public" to track public timeline, "replies" to see replies to your messages and "user" to see a specific user timeline\&. +.RE +.PP +\fB\-\-user screenname\fR +.RS 4 +Specify the user you want to see his/her messages while the action is "user"\&. +.RE +.PP \fB\-\-host HOST_NAME\fR .RS 4 Specify the host which you want to send your message to\&. Valid options are "twitter" to send to twitter\&.com and "identica" to send to identi\&.ca\&. @@ -258,6 +268,16 @@ The twitter\&.com or identi\&.ca account name you wish to use to send this messa The twitter\&.com or identi\&.ca password for the account you wish to use to send this message with\&. .RE .PP +\fBaction\fR +.RS 4 +Specify the action which you want to perform\&. Valid options are "update" to send a message, "friends" to see your friends timeline, "public" to track public timeline, "replies" to see replies to your messages and "user" to see a specific user timeline\&. +.RE +.PP +\fBscreenname\fR +.RS 4 +Specify the user you want to see his/her messages while the action is "user"\&. +.RE +.PP \fBhost\fR .RS 4 The host you want to use to send the message to\&. Valid options are either "twitter" or "identica" to send to twitter\&.com or identi\&.ca respectively\&. diff --git a/bti.c b/bti.c index ba21afd..8243ad7 100644 --- a/bti.c +++ b/bti.c @@ -80,19 +80,20 @@ struct bti_curl_buffer { static void display_help(void) { - fprintf(stdout, "bti - send tweet to twitter\n"); + fprintf(stdout, "bti - send tweet to twitter or identi.ca\n"); fprintf(stdout, "Version: " BTI_VERSION "\n"); fprintf(stdout, "Usage:\n"); fprintf(stdout, " bti [options]\n"); fprintf(stdout, "options are:\n"); fprintf(stdout, " --account accountname\n"); fprintf(stdout, " --password password\n"); + fprintf(stdout, " --action action\n"); + fprintf(stdout, " ('update', 'friends', 'public', 'replies' or 'user')\n"); + fprintf(stdout, " --user screenname\n"); fprintf(stdout, " --proxy PROXY:PORT\n"); fprintf(stdout, " --host HOST\n"); fprintf(stdout, " --logfile logfile\n"); fprintf(stdout, " --bash\n"); - fprintf(stdout, " --action action\n"); - fprintf(stdout, " --user screenname\n"); fprintf(stdout, " --debug\n"); fprintf(stdout, " --version\n"); fprintf(stdout, " --help\n"); diff --git a/bti.xml b/bti.xml index 1b20586..d103228 100644 --- a/bti.xml +++ b/bti.xml @@ -28,6 +28,8 @@ bti + + @@ -61,6 +63,27 @@ + + + + + Specify the action which you want to perform. Valid options + are "update" to send a message, "friends" to see your friends + timeline, "public" to track public timeline, "replies" to see + replies to your messages and "user" to see a specific user's + timeline. + + + + + + + + Specify the user you want to see his/her messages while the + action is "user". + + + @@ -191,6 +214,27 @@ + + + + + Specify the action which you want to perform. Valid options + are "update" to send a message, "friends" to see your friends + timeline, "public" to track public timeline, "replies" to see + replies to your messages and "user" to see a specific user's + timeline. + + + + + + + + Specify the user you want to see his/her messages while the + action is "user". + + + -- 2.39.5