Agregar soporte para rangos de fechas

This commit is contained in:
Mauricio Baeza 2021-07-29 22:09:02 -05:00
parent 5d750f57ee
commit 58b609c1f4
1 changed files with 6 additions and 0 deletions

View File

@ -55,6 +55,12 @@ def _process_command_line_arguments():
help = "Intervalo de días a partir de la fecha actual y hacia a atras"
parser.add_argument('-ud', '--ultimos-dias', help=help,
dest='last_days', default=0, type=int, choices=range(30))
help = "Fecha inicial D-MM-AAAA"
parser.add_argument('-fi', '--fecha-inicial', help=help,
dest='date_start', default='')
help = "Fecha final D-MM-AAAA"
parser.add_argument('-ff', '--fecha-final', help=help,
dest='date_end', default='')
help = 'Solicitar descarga'
parser.add_argument('-sd', '--solicitar-descarga', help=help,