Changeset 101 in lab


Ignore:
Timestamp:
Jan 1, 2011 3:01:50 PM (10 years ago)
Author:
mitty
Message:
  • accept one character options
    • user_timeline => u
    • retweeted_by_me => r
    • msentions => m
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Dev/twitter/dump_timeline.pl

    r100 r101  
    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.