Changeset 306
- Timestamp:
- 04/17/06 16:57:59 (3 years ago)
- Files:
-
- 1 modified
-
cybozu2ical/trunk/cybozu2ical (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cybozu2ical/trunk/cybozu2ical
r304 r306 15 15 use DateTime; 16 16 use DateTime::TimeZone; 17 use Pod::Usage; 18 use Getopt::Long; 17 19 18 20 our $VERSION = '0.02'; 19 21 20 my $cfg = YAML::LoadFile($ARGV[0] || 'config.yaml'); 22 my %opt = (conf => 'config.yaml'); 23 GetOptions(\%opt, 'help', 'conf=s') or pod2usage(2); 24 pod2usage(1) if $opt{help}; 25 26 my $cfg = YAML::LoadFile($opt{conf}); 21 27 my $tz = DateTime::TimeZone->new(name => $cfg->{time_zone} || 'Asia/Tokyo'); 22 28 … … 132 138 133 139 % cybozu2ical 134 % cybozu2ical /path/to/config.yaml140 % cybozu2ical --conf /path/to/config.yaml 135 141 136 142 =head1 DESCRIPTION … … 167 173 =over 4 168 174 169 =item path/to/config.yaml170 171 Specifie dthe path to a configuration file. By default, C<config.yaml>175 =item --conf path/to/config.yaml 176 177 Specifies the path to a configuration file. By default, C<config.yaml> 172 178 in the current directory. 173 179
![(please configure the [header_logo] section in trac.ini)](/public/chrome/common/trac_banner.png)