peetzweg / papr

Command line tool to generate a PDF Calendars
35 stars 1 forks source link

Create new optparse types to check year and month input #6

Closed peetzweg closed 9 years ago

peetzweg commented 9 years ago

Currently the option checking is not consistent with the optparse approach, we need to create new types for month and year to check valid input instead of using if clauses.

https://docs.python.org/2/library/optparse.html#adding-new-types