Prelim fix for wrong db path generation
This commit is contained in:
parent
97d0238cc2
commit
ae93234eb6
@ -120,8 +120,8 @@ def add_device_guided(cfg, device, db):
|
||||
|
||||
@click.command('add-device', help='Add a device to a database')
|
||||
@click.argument('device', type=str, default="")
|
||||
@click.option('--db', '--database', type=click.Path(exists=True, file_okay=False, dir_okay=True),
|
||||
envvar='IOTTB_DB', show_envvar=True,
|
||||
@click.option('--db', '--database', type=str,
|
||||
envvar='IOTTB_DB', show_envvar=True, default="",
|
||||
help='Database in which to add this device. If not specified use default from config.')
|
||||
@click.option('--guided', is_flag=True,
|
||||
help='Add device interactively')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user