Set default for volumes in argparse

This prevents code from failing when volumes are not specified
pull/172/head
yuvipanda 2017-12-19 11:15:43 -08:00
rodzic e6a13eb8ba
commit 0c0d921276
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -217,7 +217,8 @@ class Repo2Docker(Application):
'--volume', '-v',
dest='volumes',
action='append',
help='Volumes to mount inside the container, in form src:dest'
help='Volumes to mount inside the container, in form src:dest',
default=[]
)
return argparser