Added CLI functionality for duplicate-detection