Skip to content

Commit 85081fe

Browse files
author
Ando Roots
committed
Fix handling of watcher-dir argument as list
The value was stored as a list data type, breaking the implementation, which assumed it to be a string
1 parent 03390eb commit 85081fe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

watchback.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def _setup_cli_args():
4040
--watcher-dir=/home/bruce/vigilante/watchlist
4141
4242
""")
43-
parser.add_argument('--watcher-dir', metavar='dirpath', nargs='+', default='watchers',
43+
parser.add_argument('--watcher-dir', metavar='dirpath', default='watchers',
4444
help='Directory containing watch definitions')
4545
parser.add_argument('--dry-run', default=False, action='store_true',
4646
help='run validation checks, but do not actually modify anything on the remote API')
@@ -100,5 +100,6 @@ def main():
100100
importer.run(args.dry_run)
101101
logger.info('Finished importing Watchers')
102102

103+
103104
if __name__ == '__main__':
104105
main()

0 commit comments

Comments
 (0)