Changeset - 065f9ae807a1
[Not reviewed]
version_5
0 1 0
Dennis Fink - 9 years ago 2015-10-14 22:36:04
dennis.fink@c3l.lu
Add type to path option
1 file changed with 6 insertions and 1 deletions:
0 comments (0 inline, 0 general)
ennstatus/cli/__init__.py
Show inline comments
 
@@ -5,7 +5,12 @@ import click
 

	
 
@click.group()
 
@click.option('-p', '--path', default='/srv/http/enn.lu',
 
              help='Path where the config files are')
 
              help='Path where the config files are',
 
              type=click.Path(exists=True,
 
                              file_okay=False,
 
                              writable=True,
 
                              readable=True)
 
              )
 
@click.pass_context
 
def cli(ctx, path):
 
    ctx.obj = {}
0 comments (0 inline, 0 general)