Changeset 5fa546f in lab.git for Dev/twitter


Ignore:
Timestamp:
Jan 1, 2011 3:01:50 PM (14 years ago)
Author:
mitty <mitty@…>
Branches:
master, trunk
Children:
641934f
Parents:
ee655ec
Message:
  • accept one character options
    • user_timeline => u
    • retweeted_by_me => r
    • msentions => m

git-svn-id: https://lab.mitty.jp/svn/lab/trunk@101 7d2118f6-f56c-43e7-95a2-4bb3031d96e7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/twitter/dump_timeline.pl

    ree655ec r5fa546f  
    1919    die <<EOM; 
    2020usage: $0 
    21     [user_timeline(default)|retweeted_by_me|mentions 
     21    [{u}ser_timeline(default)|{r}etweeted_by_me|{m}sentions 
    2222        [screen_name 
    2323            [number_of_pages|all 
     
    6262     
    6363        my $res; 
    64         if ($method eq 'user_timeline') { 
     64        if ($method eq 'user_timeline' || $method eq 'u') { 
    6565            $res = $bot->user_timeline($param); 
    6666        } 
    67         elsif ($method eq 'retweeted_by_me') { 
     67        elsif ($method eq 'retweeted_by_me' || $method eq 'r') { 
    6868            $res = $bot->retweeted_by_me($param); 
    6969        } 
    70         elsif ($method eq 'mentions') { 
     70        elsif ($method eq 'mentions' || $method eq 'm') { 
    7171            $res = $bot->mentions($param); 
    7272        } 
Note: See TracChangeset for help on using the changeset viewer.