Make TTL configurable from the CLI

Fixes #2