Remove argument
This commit is contained in:
parent
3e35c55283
commit
da889c9af5
|
@ -1,2 +1,3 @@
|
|||
env/
|
||||
__pycache__/
|
||||
conf.py
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
aioreq
|
||||
cryptography
|
||||
peewee
|
||||
|
|
|
@ -26,9 +26,6 @@ def _process_command_line_arguments():
|
|||
help = "Nombre de la Fiel, el predeterminado es 'fiel'"
|
||||
parser.add_argument('-fn', '--fiel-nombre', help=help, default='fiel')
|
||||
|
||||
help = 'Directorio de descarga'
|
||||
parser.add_argument('-dd', '--dir-descarga', help=help, default='')
|
||||
|
||||
return parser.parse_args()
|
||||
|
||||
|
||||
|
|
|
@ -100,17 +100,11 @@ def _get_certificate(path_fiel, name_fiel):
|
|||
|
||||
|
||||
def _validate_arguments(args):
|
||||
path_download = args.dir_descarga
|
||||
if not path_download:
|
||||
msg = 'El argumento -dd (dir-descarga) es requerido'
|
||||
log.error(msg)
|
||||
return {}, None
|
||||
|
||||
cert = _get_certificate(args.fiel_dir, args.fiel_nombre)
|
||||
if cert is None:
|
||||
return {}, None
|
||||
|
||||
data = {'path_dowload': path_download}
|
||||
data = {'path_dowload': ''}
|
||||
|
||||
return data, cert
|
||||
|
||||
|
|
Loading…
Reference in New Issue