kopia lustrzana https://github.com/jupyterhub/repo2docker
Set default for volumes in argparse
This prevents code from failing when volumes are not specifiedpull/172/head
rodzic
e6a13eb8ba
commit
0c0d921276
|
@ -217,7 +217,8 @@ class Repo2Docker(Application):
|
||||||
'--volume', '-v',
|
'--volume', '-v',
|
||||||
dest='volumes',
|
dest='volumes',
|
||||||
action='append',
|
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
|
return argparser
|
||||||
|
|
Ładowanie…
Reference in New Issue