Changeset 309 for flickr2pics/trunk/flickr2pics
- Timestamp:
- 04/17/06 17:38:22 (3 years ago)
- Files:
-
- 1 modified
-
flickr2pics/trunk/flickr2pics (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
flickr2pics/trunk/flickr2pics
r305 r309 11 11 use strict; 12 12 use YAML; 13 use Pod::Usage; 14 use Getopt::Long; 13 15 14 16 our $VERSION = '0.01'; 15 17 16 my $cfg = YAML::LoadFile($ARGV[0] || 'config.yaml'); 18 my %opt = (conf => 'config.yaml'); 19 GetOptions(\%opt, 'help', 'conf=s') or pod2usage(2); 20 pod2usage(1) if $opt{help}; 21 22 my $cfg = YAML::LoadFile($opt{conf}); 17 23 die "Cannot find proper configuration for flickr2pics." 18 24 unless $cfg->{flickr_username} && $cfg->{pics_username} && $cfg->{pics_password}; … … 189 195 190 196 % flickr2pics 191 % flickr2pics /path/to/config.yaml197 % flickr2pics --conf /path/to/config.yaml 192 198 193 199 =head1 DESCRIPTION … … 219 225 =over 4 220 226 221 =item path/to/config.yaml227 =item --conf /path/to/config.yaml 222 228 223 229 Specified the path to a configuration file. By default, C<config.yaml>
![(please configure the [header_logo] section in trac.ini)](/public/chrome/common/trac_banner.png)