[issue23884] New DateType for argparse (like FileType but for dates)

2015-04-08 Thread Peter Marsh
Peter Marsh added the comment: The consensus seems to be that this is simple enough for people to implement themselves (if they need it) and it's probably not worth adding to argparse, so I've closed this :) -- resolution: -> rejected status: o

[issue23884] New DateType for argparse (like FileType but for dates)

2015-04-07 Thread Peter Marsh
New submission from Peter Marsh: Hello, Reasonably frequently I find myself needing to pass a date as a command line argument to a Python script I've written. Currently, argparse does not have a built support for dates - this adds a new class to argparse (much like the existing Fil