Bugfix/cleanup when

Could we not put the `parseTimePeriod()` in a `CliUtil`, so that it can be reused by different commands (`LsCommand` and `CleanupCommand`)?