Changeset 74 for client/trunk/bin/sophie


Ignore:
Timestamp:
12/05/10 05:45:54 (13 years ago)
Author:
nanardon
Message:
  • add IRC support
File:
1 edited

Legend:

Unmodified
Added
Removed
  • client/trunk/bin/sophie

    r70 r74  
    44use warnings; 
    55use Sophie::Client; 
     6use Getopt::Long; 
     7use Pod::Usage; 
    68 
    7 my $sc = Sophie::Client->new(); 
     9GetOptions( 
     10    'u=s' => \my $url, 
     11    'l=s' => \my $login, 
     12    'p=s' => \my $pass, 
     13    't=s' => \my $type, 
     14    'd=s' => \my @options, 
     15) or pod2usage; 
     16 
     17my %options; 
     18foreach (@options) { 
     19    m/([^=]+)\s*=\s*(.*)/ or next; 
     20    $options{$1} = $2; 
     21} 
     22 
     23my $sc = Sophie::Client->new( 
     24    server => $url, 
     25    login => $login, 
     26    password => $pass, 
     27    type => $type, 
     28); 
    829 
    930$sc->run; 
Note: See TracChangeset for help on using the changeset viewer.