Changeset 187
- Timestamp:
- 12/25/10 20:49:58 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
client/trunk/bin/sophie
r171 r187 6 6 use Getopt::Long; 7 7 use Pod::Usage; 8 use Config::General; 8 9 9 10 GetOptions( 11 'c=s' => \my $configfile, 10 12 'u=s' => \my $url, 11 13 'l=s' => \my $login, … … 20 22 m/([^=]+)\s*=\s*(.*)/ or next; 21 23 $options{$1} = $2; 24 } 25 26 $configfile ||= "$ENV{HOME}/.sophie.conf"; 27 28 if (my $conf = Config::General->new($configfile)) { 29 my %config = $conf->getall; 30 $url ||= $config{url}; 31 $login ||= $config{login}; 32 $pass ||= $config{pass}; 33 $daemon ||= $config{daemon}; 22 34 } 23 35
Note: See TracChangeset
for help on using the changeset viewer.