Changeset 513
- Timestamp:
- 08/29/08 19:33:40 (3 months ago)
- Location:
- cybozu2ical/trunk
- Files:
-
- 2 modified
-
README.txt (modified) (1 diff)
-
cybozu2ical (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cybozu2ical/trunk/README.txt
r510 r513 49 49 --output-csv /path/to/output.csv 50 50 Specify the output CSV file for debugging. 51 52 --uid, --no-uid 53 Enable/disable UID fields of the iCalendar file. 54 55 --url, --no-url 56 Enable/disable URL fields of the iCalendar file. 51 57 52 58 --help -
cybozu2ical/trunk/cybozu2ical
r510 r513 89 89 conf => 'config.yaml', 90 90 'compat-google-calendar' => 0, 91 'uid' => 1, 92 'url' => 1, 91 93 ); 92 94 GetOptions( \%opt, 'output=s', 'conf=s', 'compat-google-calendar', 'debug', 93 'input-csv=s', 'output-csv=s', 'help', )95 'input-csv=s', 'output-csv=s', 'help', 'uid!', 'url!' ) 94 96 or pod2usage(2); 95 97 pod2usage(1) if $opt{help}; … … 137 139 created => to_icaldate( $item->created ), 138 140 dtstamp => to_icaldate( $item->modified ), 139 url => $cal->url . '?page=ScheduleView&EID=' . $item->id, 141 $opt{url} 142 ? ( url => $cal->url . '?page=ScheduleView&EID=' . $item->id ) 143 : (), 140 144 ); 141 145 … … 188 192 189 193 # set uid (recommended to be the identical syntax to RFC822) 190 my $host = URI->new($cal->url)->host || 'localhost'; 191 $args{uid} = $args{created} . '-' . $item->id . '@' . $host; 194 if ( $opt{uid} ) { 195 my $host = URI->new( $cal->url )->host || 'localhost'; 196 $args{uid} = $args{created} . '-' . $item->id . '@' . $host; 197 } 192 198 193 199 $vevent->add_properties(%args); … … 313 319 Specify the output CSV file for debugging. 314 320 321 =item --uid, --no-uid 322 323 Enable/disable UID fields of the iCalendar file. 324 325 =item --url, --no-url 326 327 Enable/disable URL fields of the iCalendar file. 328 315 329 =item --help 316 330
![(please configure the [header_logo] section in trac.ini)](/public/chrome/common/trac_banner.png)