File tree Expand file tree Collapse file tree 3 files changed +16
-3
lines changed
Expand file tree Collapse file tree 3 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 1+ icalPal-3.8.2
2+ ==================
3+
4+ * Fix for #40
5+
6+ icalPal-3.8.1
7+ ==================
8+
9+ * Fix sorting regression bug
10+
111icalPal-3.8.0
212==================
313
Original file line number Diff line number Diff line change @@ -238,6 +238,9 @@ def parse_options
238238 cli [ :cmd ] ||= env [ :cmd ] if env [ :cmd ]
239239 cli [ :cmd ] ||= cf [ :cmd ] if cf [ :cmd ]
240240
241+ # Must have a command
242+ raise ( OptionParser ::MissingArgument , 'COMMAND is required' ) unless cli [ :cmd ]
243+
241244 # Handle command aliases
242245 cli [ :cmd ] = 'accounts' if cli [ :cmd ] == 'stores'
243246 cli [ :cmd ] = cli [ :cmd ] . sub ( 'reminders' , 'tasks' )
@@ -261,7 +264,6 @@ def parse_options
261264 end if cli [ :cmd ]
262265
263266 # Must have a valid command
264- raise ( OptionParser ::MissingArgument , 'COMMAND is required' ) unless cli [ :cmd ]
265267 raise ( OptionParser ::InvalidArgument , "Unknown COMMAND #{ cli [ :cmd ] } " ) unless ( COMMANDS . any? cli [ :cmd ] )
266268
267269 # Merge options
@@ -294,8 +296,9 @@ def parse_options
294296 opts [ :props ] = ( opts [ :iep ] + opts [ :aep ] - opts [ :eep ] ) . uniq
295297
296298 # From, to, days
299+ opts [ :days ] -= 1 if opts [ :days ]
300+
297301 if opts [ :from ]
298- opts [ :to ] += 1 if opts [ :to ]
299302 opts [ :to ] ||= opts [ :from ] + 1 if opts [ :from ]
300303 opts [ :to ] = opts [ :from ] + opts [ :days ] if opts [ :days ]
301304 opts [ :to ] = RDT . new ( *opts [ :to ] . to_a [ 0 ..2 ] + [ 23 , 59 , 59 ] )
Original file line number Diff line number Diff line change 11module ICalPal
22 NAME = 'icalPal' . freeze
3- VERSION = '3.8.1 ' . freeze
3+ VERSION = '3.8.2 ' . freeze
44end
You can’t perform that action at this time.
0 commit comments